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 are the Difference between asp.net and asp ?
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?
What is viewstate? What does the "enableviewstate” property do? Whay would I want it on or off?
Suppose you want an asp.net function (client side) executed on the mouseover event of a button. Where do you add an event handler?
Explain Features in ASP.NET
What are the different types of validation controls provided in ASP.NET?
Why do we use asp.net?
Define a static class?
How can we access static variable?
What is asp.net used for?
Why session is more secure than cookies?
What is HTTPModule and HTTPcontext? What is the use of each?
What is OSI layer? Explain different layers.
Whats the difference between abstract factory pattern and factory pattern?
Define page fragment caching?