how to create session in .net
Answers were Sorted based on User's Feedback
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 |
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 we can register the Area in ASP.Net MVC?
I can't be bothered with all this CAS stuff. Can I turn it off
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?
What's the difference between Java and .NET garbage collectors ?
Iam using an asp.net application . i want to update one of my table in database at 4pm every day how it is possible.
What are the benefits of .net framework?
How do you enforce garbage collection in .NET
In which circumstances you used delegates?
What is the use of action filters in an mvc application?
What is meant by domain model?
What is CLR? How it will work?
what is VSS? Where we are using?