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

How to handle error while project running on live

2 Answers  


Describe the diffeerence between inline and code behind?

0 Answers  


Is session server side or client side?

0 Answers  


What is the difference between login controls and forms authentication?

0 Answers  


What is a windows service?

0 Answers  






How many types of validators are there in asp net?

0 Answers  


i want the asp.net technical questions and answeres

0 Answers  


What is inproc and outproc?

0 Answers  


If 200 is for all successful operation then why do we have 201 response codes?

0 Answers  


The question is "After sign out from email, Then we click a back button , we can't go to the previous page ie inbox page, It is displaying a login form only" My doubt is How will code this , If u know please blog me through this or my mail. my mail id is yoursguna@gmail.com

3 Answers   TCS,


What is difference between session and cookies?

0 Answers  


A Web Service Can Only Be Written In .net. Is it True??

0 Answers   Siebel Systems,


Categories