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

if u add an import stmt to an application u can do the same by adding reference to the apllication then what is the diff bet these two ?

1 Answers  


What is the use of viewmodel in mvc?

0 Answers  


How big is the char ?

1 Answers  


Who defines the CAS code groups

1 Answers  


What is an asynchronous controller in asp.net mvc?

0 Answers  






what is scalar property?

0 Answers   Microsoft,


What are the ways to deploy an assembly?

3 Answers  


Why to use '{resource}.axd/{*pathInfo}' in routing in ASP.Net MVC?

0 Answers   B-Ways TecnoSoft,


Why we need a separate mobile project template, while we can render our web application in mobile ?

0 Answers  


What are the types of assemblies and where can u store them and how ?

11 Answers   Accenture, BirlaSoft, IBM,


what is client wins and store wins mode in entity framework concurrency?

0 Answers   Microsoft,


exe abrevatiom

5 Answers   IBM,


Categories