how to create session in .net

Answer Posted / sanoop k

step 1:
creation of session variable-
Session.Add["Username"]=TextBox1.Text;

step 2:

Calling the session value-
Label.Text=Session["Username"].ToString();

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is use of entity container?

791


What is session state management?

763


what is way of loading data in ef (entity framework)?

786


How we can register the Area in ASP.Net MVC?

857


How to update one of my table in database at 4pm every day how it is possible?

756


Explain the difference between viewbag and viewdata in mvc?

741


What is the need of Action Filters in ASP.Net MVC

780


Is .net framework 4.8 the last version?

746


Which is the root namespace for fundamental types in .net framework?

760


Mention the core components of .net framework?

758


Can I remove .net framework?

747


How to answer for project questions..?

2419


Why is entity framework used?

790


What is attribute routing in mvc?

797


What is entity client data provider? : Entity framework

750