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 another word for redirect?
What is the procedure to create the environment for asp.net? : asp.net mvc
What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?
Why is it preferred to not use finalize for clean up?
How many types of sessions are there in asp net?
Define static member?
What are custom user controls in asp.net?
How to prepare culture-specific formatting in .net.
What is autopostback in asp net?
What is a 307 redirect?
Is data edited in the Repeater control?
Why is global asax is used for?
Difference between Response.redirect vs server.transfer?
How do u deploy your asp.net application?
How to prevent client side validation from the ASP.NET validation controls?