How to get the IP address of the host accessing my site
VB.NET Response.Write (Request.UserHostAddress.ToString ()) C# Response.Write (Request.UserHostAddress.ToString ());
How to prevent a button from validating it’s form
Set the CauseValidation property of the button control to False
What is the equivalent of date() and time() in ASP.NET
VB.NET System.DateTime.Now.ToShortDateString() System.DateTime.Now.ToShortTimeString() C# System.DateTime.Now.ToShortDateString(); System.DateTime.Now.ToShortTimeString();
I am running the query SQL=’Select name from profile where proID=1′; and I am getting the result in Dataset dsdata. Now how do I read the text from the dataset and assign it to textbox1.text ?
VB.NET dsData.Tables(0).Rows(0)(‘FieldName’).ToString() C# dsData.Tables[0].Rows[0][‘FieldName’].ToString()
Response.Redirect and Server.Transfer is not working in Session_End
Session_End is fired internally by the server, based on an internal timer. And thus there is no HttpRequest associted when that happens. That is why Response.Redirect or Server.Transfer does not make sense and will not work.