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 is the auto option in XML ?
What is the difference between equals() and == in c#?
What Name space does the web page belon in the .net framework class hierarchy?
what is the requirement that .Net web services can access the java application?
What is the purpose of the following segment? If ( !IsPostBack) { sqldataAdapter1.Fill (dsusers1); DataGrid1.DataBind (); } a) To populate the DataAdapter the first time the web page id displayed. b) To populate the DataSet every time the web page is displayed. c) To populate the DataAdapter every time the web page is displayed. d)To populate the DataSet the first time the web page is displayed.
What is .net remoting?
What is asp.net file?
Describe the disadvantage of cookies.
How to kill session?
What is Fragment Caching in ASP.NET?
2 Answers MCN Solutions, pspl, Wipro,
about view state and how validation controls will be executed on client and server
Difference between application events and session events
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)