Can session variables be accessed from code-behind?
Answer Posted / swapna
Yes. You can access the "Session" dictionary within a code-
behind file just like you would if you were accessing it
from within an line .aspx file.
For example: Session("Name") = "Scott"
Is This Answer Correct ? | 16 Yes | 3 No |
Post New Answer View All Answers
Explain about asp.net caching?
What is the maximum amount of memory any single process on windows can address?
Explain the concept of MVC Scaffolding?
How to retrieve user name in case of Window Authentication?
Explain how can we access static variable?
Can action method static?
What are demand-paging and pre-paging?
How do u deploy your asp.net application?
Can you explain why it is useful to use mvc instead of webforms? : asp.net mvc
What is the difference between “Web.config” and “Machine.Config”?
How to disable cut, copy and paste in TextBox using jQuery in asp.net?
Difference between overriding and overloading?
Explain server control extensibility with reference to asp.net 2.0 ?
What are the main requirements for caching?
How does output caching work in ASP.NET?