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

When you use Ajax controls in the ASP.NET application?

558


Describe the diffeerence between inline and code behind - which is best in a loosely coupled solution?

618


In how many ways we can retrieve table records count?

532


Is sql backend or frontend?

553


What are the authentication types in asp.net?

567






Which methods validate all the controls on a page?

541


How does asp page work?

539


what is publisher?

1644


What is the difference between application state and caching?

541


What are triggers of an updatepanel?

549


What are the features that make asp.net more used framework? : asp.net mvc

538


From which base class all web forms are inherited?

492


Can the validation occurs in server-side or client-side? If the validation occurs why should we do?

595


14. What are your Future Plans for Swatz Oils GROUP U.K?

1717


What is _dopostback in asp net?

523