What are the data types is possible to store in session?
and can we store dataset in session?
Answers were Sorted based on User's Feedback
Answer / senthil
Any data type can be stored session. Because it accepts all
the objects
Is This Answer Correct ? | 42 Yes | 7 No |
Answer / nitin
All types of data Which can be serialized can be stored in
session and we can also store dataset in session
Is This Answer Correct ? | 23 Yes | 6 No |
If you are using inproc then you can store any .net data
type (non serializable also), but if you are using state
server or sql server mode then you can only store
serializable data types.
Is This Answer Correct ? | 14 Yes | 7 No |
Answer / 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 |
What are the Application_Start and Session_Start subroutines used for?
What are ASHX files?
What is xaml? Are xaml file compiled or built on runtime?
Which class is used to send an email message from an ASP.NET Web page?
0 Answers Sans Pareil IT Services,
What are the major differences between asp.net1.1 and asp.net 2.0?
8 Answers CTS, Deloitte, Mphasis, Vison,
Can we have multiple master pages in asp net?
How does a content page differ from a master page?
suppose i am Admin in my application and i have to terminate the session of the particular user in my application.........how can i do it....?????
What is the difference between dynamic SGA and static SGA?
How does ASP.NET framework maps client side events to Server side events.?
What are the different modes for the sessionstates in the web.config file?
Write some code using interfaces, virtual methods, and an abstract class`