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 modes of updation in an updatepanel? What are triggers of an updatepanel?
what are the security certificates used in webservices?
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.
what is webpart? what r the parts in this webpart (zone)
how to elimainte the similar data from the different tables
Does web services support data reader like pom project?
What are Session states available and its Uses?
What is the use of response redirect in asp.net?
how can i call output parameters from ado.net
what is an Eventbubbling?
What is a master page and what does it do?
How many types of sessions are there?