Hi Experts, I develop a small web application also i have hosted the server. But i open the the url in the mobile browser is not in the formatted order as see in the PC browser. Please help me. Thanks, Murugavel S
Murugavel Sadagopan
Posts
-
Mobile Compatibility -
GridviewHi All, I develop a application with grid view. I have bind the values in gridview view (5 records). in Gridview, I want 4th row in red color and 5th row in green color. Plz help me. Thanks, Murugavel s
-
HTML Body mail with link buttonHi All, In C#, How To Send A Hyperlink Using Query String Method. I have developing a web application of user enter enters the personal data. That information has sent to admin mail with approve/reject link button. When the Admin click the approve link, it has approve.aspx page with the user id as query string to update the db as approved. otherwise rejected. I can try the following code.
mail.Subject = "New User";
mail.Body = "<p>Dear Sir, <br><br> " + txtfname.Text + " " + txtlname.Text + ", has raised a requisition that needs your approval. <br><br><br> Please click to [<a href='http://localhost:1240/IMA/Approve.aspx?id="+tt+"'> Approve</a> ] [<a href='Reject.aspx'>Reject</a> ] the request. <br> <br> <br> <b>Note</b> : Please do not reply. This e-mail has been auto-generated.</p>";
mail.IsBodyHtml = true;In the mail i have move the mouse over the approve link it shows http://.../approve.aspx?id=1, but click the appove link it shows <a href="http://.../id=1. I don't know why. Please help me out. Thanks in advance, Murugavel S
-
SpellCheckerHi, I have created a Texteditor using C#. In this I am using Spellchecker with the help of NHunspell. When i am entering more than 60000 characters its hanged. Its performance is too slow. But its very fast while the spellchecker is off. How can i achieve the spellchecker is on for the customer view page only onto the entire. The following code that i can used for dictionary on/off if (btnsCheck.BackColor==Color.Green) { this.NHunspellTextBoxExtender1.SetSpellCheckEnabled(this.TextEditor, false); this.NHunspellTextBoxExtender1.SpellAsYouType = false; btnsCheck.BackColor = Color.Red; } else { this.NHunspellTextBoxExtender1.SetSpellCheckEnabled(this.TextEditor, true); string TempSt = this.TextEditor.SelectedText; this.NHunspellTextBoxExtender1.SpellAsYouType = true; this.TextEditor.SelectedText = " quot;; btnsCheck.BackColor = Color.Green; } } Thanks, Murugavel S
-
ASP.NET - TargetInvocationExceptionHi, in asp.net, i have the following errors, System.Reflection.TargetInvocationException was unhandled by user code Message="Exception has been thrown by the target of an invocation." Source="mscorlib" StackTrace: at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) at System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance) at System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) at System.Web.UI.WebControls.ListControl.OnDataBinding(EventArgs e) at System.Web.UI.WebControls.ListControl.PerformSelect() at System.Web.UI.WebControls.BaseDataBoundControl.DataBind() at TimeEntry_aspx.Page_Load(Object sender, EventArgs e) in h:\TimeTracker1\TimeTracker\TimeEntry.aspx.cs:line 40 at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) thanks in advance murugavel
-
DataAdapterhi imran khan, still i have the same problem. thanks, murugavel
-
DataAdapterHi, I develop a code for data manipulation i.e (first, next, previous and last record). i try the below mentioned code, In this, i click next button -- move the next record. i click one more time it doesnt move same as for previous button. protected void Page_Load(object sender, EventArgs e) { SqlConnection con = new SqlConnection(); //SqlCommand cmd = new SqlCommand(); con.ConnectionString = "Data source=localhost;initial catalog=northwind;integrated security=true"; String cmd = "select * from employees"; //cmd.CommandType = CommandType.Text; //cmd.Connection = con; //cmd.Connection.Open(); SqlDataAdapter da = new SqlDataAdapter(cmd, con); DataSet ds = new DataSet(); da.Fill(ds, "employeeinfo"); dt = ds.Tables["employeeinfo"]; tot = dt.Rows.Count; Label5.Text = tot.ToString(); fill(); //SqlDataReader dr = cmd.ExecuteReader(CommandBehavior.CloseConnection); //Label5.Text= Convert.ToString(dr.FieldCount); //while (dr.Read()) //{ // TextBox1.Text = dr["employeeid"].ToString(); // TextBox2.Text = dr["firstname"].ToString(); // TextBox3.Text = dr["city"].ToString(); // TextBox4.Text = dr["country"].ToString(); //} //Label5.Text=dr.RecordsAffected.ToString(); //GridView1.DataSource = dr; //GridView1.DataBind(); //cmd.Dispose(); //dr.Dispose(); } protected void Button6_Click(object sender, EventArgs e) { //First record cur = 0; fill(); Label5.Text = cur.ToString(); } protected void Prev_Click(object sender, EventArgs e) { //previous record cur--; if (cur < 0) cur = tot - 1; fill(); Label5.Text = cur.ToString(); } private void fill() { TextBox1.Text = dt.Rows[cur]["employeeid"].ToString(); TextBox2.Text = dt.Rows[cur]["firstname"].ToString(); TextBox3.Text = dt.Rows[cur]["city"].ToString(); TextBox4.Text = dt.Rows[cur]["country"].ToString(); Label5.Text = cur.ToString(); } protected void Button8_Click(object sender, EventArgs e) { if (cur < tot - 1) { cur = cur + 1; fill(); } // //Next record // cur = cur + 1;
-
DropDown List BoxHi, I think u didnt understand my question. for example. in dropdownlist1 -- i select the northwinddatabase. in dropdownlist2 -- list the table names depend on dropdownlist1 in dropdownlist3 -- list the columns contains in the table depend on dropdownlist2 Thanks, Murugavel
-
DropDown List BoxHi, i have three dropdown boxes, in first drop down boxes i have a items of databases name. i want 2nd drop down box contains list of tables dependent on dropdown box1 of databasename. please guide me, DataSet ds = new DataSet(); using (SqlConnection sqlcon = new SqlConnection("Data Source=localhost;Initial Catalog=master;integrated security=true")) { sqlcon.Open(); string sQuery = "exec sp_databases"; SqlCommand cmd = new SqlCommand(sQuery, sqlcon); SqlDataAdapter objSqlDA = new SqlDataAdapter(cmd); objSqlDA.Fill(ds); DropDownList1.DataSource = ds; DropDownList1.DataTextField = "Database_name"; //DropDownList1.DataValueField = "Database_size"; DropDownList1.DataBind(); } thanks, Murugavel
-
DropDown ADD itemsHi, In Visual studio 2005, i have a drop down list. i want to add list of databases in dropdown list. i try the below mentioned code. But it returns System.Data.DataRowView in dropdown list not the database name. I also ensure in SQL Server execute the command "exec sp_databases" it returns 16 Databases names and autopostback property is also true. protected void Page_Load(object sender, EventArgs e) { DataSet ds = new DataSet(); using (SqlConnection sqlcon = new SqlConnection("Data Source=localhost;Initial Catalog=master;integrated security=true")) { sqlcon.Open(); string sQuery = "exec sp_databases"; SqlCommand cmd = new SqlCommand(sQuery, sqlcon); SqlDataAdapter objSqlDA = new SqlDataAdapter(cmd); objSqlDA.Fill(ds); DropDownList1.DataSource = ds; DropDownList1.DataBind(); } Thanks, Murugavel
-
User AccessHi, I developed a web based application in my pc. i want other user access my site. In IIS server what are the steps to be followed ( through intranet). Other than IIS, i have to do anything.. please guide me, thanks, murugavel
-
DropDown and GridViewHi, In dropdown list i have a header data items, which i was configured in Gridview. My question is whenever change the selected index in dropdown (it contails header data of the table) it select the gridview particular columns Example. in employee table, we have a columns of empid, ename, salary etc. DropDown box contains all headers which i mentioned above. In drop down i select ename means, in grid view ename columns is selected. please guide me. Thanks, Murugavel.
-
DropDownListHi, How to add database name list (from sql server) into the dropdown box. please guide me, Thanks, Murugavel