using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data; using System.Web.SessionState; /// <summary> /// Summary description for Class1 /// </summary> ///IRequiresSessionState enable session in Class file public class Class1:IRequiresSessionState { public Class1() { // // TODO: Add constructor logic here // } public void getSession(string key) { if (HttpContext.Current.Session[key] != null) { string sessionID= HttpContext.Current.Session[key].ToString(); } } }
24 Aug 2012
How to use a Session variable from a .cs file
Subscribe to:
Posts (Atom)
-
Introduction The SAP .Net Connector is a software component supplied by SAP that makes it possible to communicate between an SAP host and ...
-
SSRS will often timeout when starting under Windows Server: The error is: Windows could not start the SQL Server Reporting Services (MS...
-
Many times I found that the Reporting service is configured to access as "Anonymous Access", so any user having URL can access r...