How to get the currently logged in user
To get the user ID of the user who is currently logged in, you would get it using this: System.Web.HttpContext.Current.User.Identity.Name VB.NET ’Displays the currently logged in user Response.Write(User.Identity.Name.ToString()) C# //Displays the currently logged in user Response.Write(User.Identity.Name.ToString());
How to detect the User’s culture
VB.NET Dim sLang As String sLang = Request.UserLanguages(0) Response.Write(sLang) C# string sLang ; sLang = Request.UserLanguages[0]; Response.Write (sLang);
How can I ensure that application-level variables are not updated by more than one user simultaneously
Use the HttpApplicationState’s Lock and UnLock methods. For more details refer : MSDN: Application State
How can I add a DateTimePicker column style to the DataGrid?
This MSDN reference shows how how to create DateTimePicker column style in the DataGrid.
What are the disadvantages of setting cookieless to true
Setting Cookieless=true implies some restrictions, mainly: You cannot use absolute link in your pages. You have to perform additional steps to switch between http and https pages in your application. If your customer sends a link to a friend, the URL will contain the session ID and both users could be using the same session ID at the same time.