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


Please Help Members By Posting Answers For Below Questions

Explain the main function of razor in asp.net? : asp.net mvc

589


Is asp.net web forms dead?

517


How can we provide the WebParts control functionality to a server control?

576


What is the part of url?

534


Explain about consistent programming model in the .NET framework?

597






What are the asp.net security controls?

560


What is application variable?

525


How can you access the properties and controls of master pages from content pages?

522


What is windows active directory authentication?

575


What is client side state management?

510


Securitywise What are the Enhancements in 2.0?

1494


What is difference between asp.net and asp.net mvc? : Asp.Net MVC

489


Explain what is clr?

630


What asp.net control can embed xaml into asp.net pages?

543


How you can access the properties and controls of master pages from content pages?

515