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 the main function of razor in asp.net? : asp.net mvc
Is asp.net web forms dead?
How can we provide the WebParts control functionality to a server control?
What is the part of url?
Explain about consistent programming model in the .NET framework?
What are the asp.net security controls?
What is application variable?
How can you access the properties and controls of master pages from content pages?
What is windows active directory authentication?
What is client side state management?
Securitywise What are the Enhancements in 2.0?
What is difference between asp.net and asp.net mvc? : Asp.Net MVC
Explain what is clr?
What asp.net control can embed xaml into asp.net pages?
How you can access the properties and controls of master pages from content pages?