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 modes of updation in an updatepanel? What are triggers of an updatepanel?

0 Answers  


what are the security certificates used in webservices?

0 Answers  


i have a register form & in that form i have a 2 textboxes for entering name&age.my doubt is that how can i provide error message like "invalid entry" when user enter a invalid name/age(eg:user enter name as #%%%##daff,and age as 1000.)in that textboxes.I want code.

3 Answers  


what is webpart? what r the parts in this webpart (zone)

2 Answers  


how to elimainte the similar data from the different tables

0 Answers  






Does web services support data reader like pom project?

0 Answers  


What are Session states available and its Uses?

0 Answers   CTS, iLogic,


What is the use of response redirect in asp.net?

0 Answers  


how can i call output parameters from ado.net

3 Answers   TCS,


what is an Eventbubbling?

3 Answers   DSS,


What is a master page and what does it do?

0 Answers  


How many types of sessions are there?

2 Answers  


Categories