HttpContext.Current.Session["..."]
HttpContext.Current
gets you the current … well, Http Context; from which you can access: Session, Request, Response etc
More Related Contents:
- Session Variable with if/else statement in Views?
- What’s a “static method” in C#?
- How to access session variables from any class in ASP.NET?
- Lifetime of ASP.NET Static Variable
- Are static class instances unique to a request or a server in ASP.NET?
- Are static methods thread safe
- Using static variables instead of Application state in ASP.NET
- Should C# methods that *can* be static be static? [closed]
- HttpContext.Current.Session is null when routing requests
- Scope of static Variable in multi-user ASP.NET web application
- How to access page controls inside a static web method? [duplicate]
- ASP.NET C# Static Variables are global?
- How do static properties work in an asp.net environment?
- How do I get the contents of a JSON file I added in the StartUp method to use it in one of my actions?
- How to Convert JSON object to Custom C# object?
- The request was aborted: Could not create SSL/TLS secure channel
- Object cannot be cast from DBNull to other types
- How to get values of selected items in CheckBoxList with foreach in ASP.NET C#?
- Cannot deserialize the current JSON array (e.g. [1,2,3]) into type
- How to use custom Authorize attribute for roles as well as a specific user?
- C# dynamically set property [duplicate]
- How to natively enable JSONP for existing WCF service?
- What’s better: DataSet or DataReader?
- @Html.HiddenFor does not work on Lists in ASP.NET MVC
- ASP.NET GridView RowIndex As CommandArgument
- how can i get the same page with the click of back button of browser
- How to convert DataTable to class Object?
- call async method without await #2
- Find a control in a webform
- How to get the first five character of a String