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 we can register the Area in ASP.Net MVC?

0 Answers  


I can't be bothered with all this CAS stuff. Can I turn it off

1 Answers  


What is .net framwork? what is web application? what is CLR? How does work CLR & wht is work of CLR? What is compile? wht is thread? what does use in .net?

4 Answers   IBM, NIIT,


What's the difference between Java and .NET garbage collectors ?

1 Answers   BirlaSoft,


Iam using an asp.net application . i want to update one of my table in database at 4pm every day how it is possible.

6 Answers   ABC, Evalueserve,






What are the benefits of .net framework?

0 Answers  


How do you enforce garbage collection in .NET

1 Answers   Wipro,


In which circumstances you used delegates?

5 Answers   HP,


What is the use of action filters in an mvc application?

0 Answers  


What is meant by domain model?

0 Answers  


What is CLR? How it will work?

5 Answers  


what is VSS? Where we are using?

3 Answers   TCS,


Categories