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
What is xaml? Are xaml file compiled or built on runtime?
What is the difference between system.stringbuilder and system.string
What is _dopostback in asp net?
What is the difference between response.redirect and server.transfer?
What is the concept of postback in asp.net?
What is the main function of url routing system in asp.net mvc? : asp.net mvc
What's the use of formatters in .net?
What is a query string in a url?
What is viewstate? What does the “enableviewstate” property do?
Can you explain the importance of finalize method in .net?
What is asp.net version?
Which browsers support the xmlhttprequest object?
What is the difference between Session and response.Redirect?
Web API supports which protocol?
What is route in web api?