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



What are the data types is possible to store in session? and can we store dataset in session?..

Answer / senthil

Any data type can be stored session. Because it accepts all
the objects

Is This Answer Correct ?    42 Yes 7 No

What are the data types is possible to store in session? and can we store dataset in session?..

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

What are the data types is possible to store in session? and can we store dataset in session?..

Answer / kuldeep kumar

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

What are the data types is possible to store in session? and can we store dataset in session?..

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

Post New Answer

More ASP.NET Interview Questions

What are the Application_Start and Session_Start subroutines used for?

5 Answers   Siebel Systems,


What are ASHX files?

0 Answers   HCL,


What is xaml? Are xaml file compiled or built on runtime?

0 Answers  


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?

0 Answers  


How does a content page differ from a master page?

0 Answers  


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....?????

1 Answers   L&T,


What is the difference between dynamic SGA and static SGA?

0 Answers   MCN Solutions,


How does ASP.NET framework maps client side events to Server side events.?

0 Answers  


What are the different modes for the sessionstates in the web.config file?

2 Answers  


Write some code using interfaces, virtual methods, and an abstract class`

0 Answers  


Categories