How to store a dataset in a viewstate?
Answers were Sorted based on User's Feedback
Dataset can be stored in the viewstate. any object that
can be serializable can be stored in the viewstate. We can
serialize the dataset and then can be saved int he viewstate..
| Is This Answer Correct ? | 24 Yes | 4 No |
Answer / jitender
dataset can be stored in the viewstate. any object that can
be serializable can be stored in the viewstate. we can
serialize the dataset and then can be saved in the viewsate
| Is This Answer Correct ? | 12 Yes | 2 No |
Answer / pradhan prasanta kumar
Hi..
store a dataset in a view state is not Recommend.
//da(sqldataadapter);dataset dSet
da.Fill(dSet);
System.IO.StringWriter sw = new System.IO.StringWriter();
// Write the DataSet to the ViewState property.
dSet.WriteXml(sw);
ViewState["dSet"] = sw.ToString();
| Is This Answer Correct ? | 2 Yes | 1 No |
Is viewstate enabled by default?
can we store textbox and com components in viewstate?
Explain the difference between asp.net mvc and asp.net webforms
What is the current version of asp.net?
In what order do the events of an ASPX page execute, As a developer is it important to understand these events?
Which is the namespace used to write error message in event Log File?
What is Virtual path in ASP.Net
What are session variables?
What line in the following XML document will generate an error? <?xml version=?1.0?> <employees> <employee> <name>Bob Andcarrol</name> </employee> <employee> <name>Robert Burns</name> </employee> </employees> a) 6 b) 4 c) 1 d) There is no error
i cant get Primary output selection from the Dialog box While Creating Setup and Deployment the web application how to solve it..
Which method do you invoke on the DataAdapter control to load your generated dataset with data?
Describe the application event handlers in 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)