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


Please Help Members By Posting Answers For Below Questions

How can we use Web API with ASP.NET Web Form?

652


What is difference between asp.net and asp?

567


What is a global postback url?

515


What is the difference between CC and BCC?

620


A Web Service Can Only Be Written In .net. Is it True??

644






What is the use of session?

529


How to store checkbox value in database in asp.net mvc? : Asp.Net MVC

523


Is it possible to develop a single web application using ASP.NET webforms and ASP.MVC?

604


What is the equivalent of date() and time() in asp.net?

519


What are the Types of session management in ASP.NET

566


Explain the difference between singleton and single call?

539


Apart from IDE what are the enhancements in asp.net 2.0?

1629


What permissions do asp.net applications posses by default?

650


What is the difference between server-side scripting and client-side scripting?

554


Where viewstate value is stored in asp.net?

597