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.
Do I have a valid HttpSessionState object and HttpContext object in Session_End?
You will have the HttpSessionState object available. Just use ’Session’ to access it. For HttpContext, it is not available because this event is not associated with any request.