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 connection pooling
Explain bundle.config in mvc4?
How do you register the dotnet component or assembly ?
1 Answers Accenture, BirlaSoft,
What is the difference between .net core and .net framework?
What is different between User Control and Web Control and Custom Control?
what is dot net? what is use dot net? what is benifit of dot net?what is vb dot net? what is ado dot net? what is c#?
If I have multiple filters implemented, what is the order in which these filters get executed?
Can we create .DLL file without using the namespace?
And if they have conflicting method names ?
If background completes its processing will it wait for foreground threads?
Which are the important namespaces used in ASP.Net MVC?
How to make sure Client Validation is enabled in ASP.Net MVC