how to create session in .net

Answers were Sorted based on User's Feedback



how to create session in .net ..

Answer / albert abraham arunkumar

Session can be created using the keyword "Session" as follows:


Session["username"]=txtusername.text

This username will be kept till this current session is expired.

Is This Answer Correct ?    9 Yes 0 No

how to create session in .net ..

Answer / 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

how to create session in .net ..

Answer / srinivasula reddy

Session["name"]="srinivasula Reddy";

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Dot Net Framework Interview Questions

How big is the char ?

1 Answers  


Is .NET a runtime service or a development platform?

1 Answers  


Why should we go for entity framework?

0 Answers  


What is the .net framework and how does it work?

0 Answers  


What is GC (Garbage Collection) and how it works

1 Answers  


Mention what is the difference between “ActionResult” and “ViewResult” ?

0 Answers  


If you change something in web.config file.Do u need to compile again?

5 Answers   Broadridge, SMNetserv,


Tell me the best web-sites for Learning the ASP DOT NET.

3 Answers  


what is entity graph in entity framework?

0 Answers   Microsoft,


What are ajax helpers in mvc?

0 Answers  


Explain Bundle.Config in ASP.Net MVC4?

0 Answers  


what is mean by type-safe? Please answer me. Advance thanks.

0 Answers   Excel,


Categories