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 |
what is msl?
Which version of .net framework is installed?
How do you initiate a string without escaping each backslash ?
Why to use '{resource}.axd/{*pathInfo}' in routing in ASP.Net MVC?
mention what is the key advantage of using entity framework or ef?
What does CLR do as soon as an assembly is created ?
How does �side by side� work for the .net framework 3.0?
Is it possibe to run 2 aplication on single m/c, one App is on .Net Framework 1.0 and another one is on .Net Fremework 2.0?
What is attribute routing in mvc?
What is route config?
Why do you need to box a primitive variable
What is entity framework in asp net?