What are the data types is possible to store in session?
and can we store dataset in session?
Answer Posted / sasi
Sesions can store any type strings,objects, not values.
Eg:-Session["n"]=100//error(won't allow values directly
Session["n"]="100" //correct
String s=Session["n"].tostring();//reading Seesion values
dataset ds=new dataset();
ds=(dataset)session["n"].Tostring();
Is This Answer Correct ? | 6 Yes | 6 No |
Post New Answer View All Answers
How can we use Web API with ASP.NET Web Form?
What is difference between asp.net and asp?
What is a global postback url?
What is the difference between CC and BCC?
A Web Service Can Only Be Written In .net. Is it True??
What is the use of session?
How to store checkbox value in database in asp.net mvc? : Asp.Net MVC
Is it possible to develop a single web application using ASP.NET webforms and ASP.MVC?
What is the equivalent of date() and time() in asp.net?
What are the Types of session management in ASP.NET
Explain the difference between singleton and single call?
Apart from IDE what are the enhancements in asp.net 2.0?
What permissions do asp.net applications posses by default?
What is the difference between server-side scripting and client-side scripting?
Where viewstate value is stored in asp.net?