Can different apps store their session state in different databases on the same SQL server?
Yes. Refer FIX: Using one SQL database for all applications for SQL Server session state may cause a bottleneck
Why do I get the error message ‘Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive’
This problem may occur after you install Windows Sharepoint Server(WSS) on a server that has Microsoft Visual Studio .NET 2003 installed. The WSS ISAPI filter handles all incoming URLs. When you browse one of the ASP.NET Web application virtual directories, the ISAPI filter does not locate the URL path of the folder. To resolve this refer Session state cannot be used in ASP.NET with Windows SharePoint Services
Why are my Session variables lost frequently when using InProc mode?
This can be due to application recycle. See PRB: Session variables are lost intermittently in ASP.NET applications In v1, there is also a bug that will cause worker process to restart. It’s fixed in SP2 and v1.1. See FIX: ASP.NET Worker Process (Aspnet_wp.exe) Is Recycled Unexpectedly.
Can I share session state between ASP.NET and ASP pages?
No. This MSDN article shows how to work around it: How to Share Session State Between Classic ASP and ASP.NET
How to apply css style to each item of the dropdownlist or listbox control
The dropDownList has a bug which prevent us from assigning the style property to each item in the DropDownList. This bug confirmed by Microsoft in Microsoft Knowledge Base Article – 309338 For the workaround use a HTML dropdownlist with runat=server tag <SELECT id=’DropDownList1′ runat=’server’ > </SELECT> Use namespace System.Reflection VB.NET If Not Page.IsPostBack Then Dim col As FieldInfo For Each col In GetType(KnownColor).GetFields If col.FieldType Is GetType(Drawing.KnownColor) Then DropDownList1.Items.Add(New ListItem(col.Name, col.Name)) End If Next End If Dim i As Integer For i = 0 To DropDownList1.Items.Count – 1 DropDownList1.Items(i).Attributes.Add(‘style’, ‘background-color:’ + DropDownList1.Items(i).Text) Next C# if (!IsPostBack) { foreach(FieldInfo col in typeof(KnownColor).GetFields() ) { if (col.FieldType == typeof(KnownColor) ) { DropDownList1.Items.Add(new ListItem(col.Name ,col.Name)); } } } for (int i= 0 ;i < DropDownList1.Items.Count;i++) { DropDownList1.Items[i].Attributes.Add(‘style’, ‘background-color:’ + DropDownList1.Items[i].Text); }