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 |
Difference between Array and ArrayList? How Array is benifitful than ArrayList?
What is boxing and how it is done internally?
can we transfer data from one page to another page using viewstate if so how?if not y?
How do we implement bundling in MVC?
What is JIT and how is works ?
What is the difference between response.redirect and server.transfer, how to choose one among the other?
Hi! Could any 1 please suggest me a free practice online exam for asp.net exams.. thanks
ADO.Net - how to get data from database and bind to the controls -- write this small code
Which template must you provide, in order to display data in a Repeater control?
3 Answers Siebel Systems, Wipro,
Explain the various authentication mechanisms in asp.net.
What is server transfer?
what is view state?
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)