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
Explain the difference between asp.net mvc and asp.net webforms
Why does my asp.net file have multiple tag with runat=server?
How to add DateTime Control in normal DataGrid Server Control?
In which event of the page life cycle, is the viewstate available?
Will the asp.net validators run in server side or client side? How do you do client-side validation in .net?
What are the new web part controls in asp.net 2.0 ?
To display data in a Repeater control which template you provide?
What is session authentication?
Define transparent caching with aop?
How is a session stored and maintained in asp.net?
Explain global assembly cache.
Differentiate between globalization and localization.
How we can force all the validation controls to run?
what is publisher?
What is the difference between session and viewstate in asp.net?