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 advantages of using sql stored procedures instead of adhoc sql queries in an asp.net web application?
In which situation can you not use a viewstate?
How to rename a table using sql queries?
What are the HTML server controls in ASP.NET?
What is the difference between session object and application object?
What do you mean by serialize?
what is view state and its use
10 Answers DELL, Efextra, HCL,
What are the session management techniques asp net?
how many select state ments are used in stored procedure?
what is Impersonation
3 Answers Alliance One, Task Informatics,
Is web config mandatory?
How many object in c# asp .net
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)