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 |
What is CSS? What is the advantage os using CSS in ASP.NET Web Applications?
How to bind all the binding controls in a page at once in ASP.NET?
What is tracing? Where is it used?
Which authentication uses a combination of windows and iis authentication?
How ASP and ASP.NET page works? Explain about asp.net page life cycle?
How do you do validations. Whether client-side or server-side validations are better ?
2 Answers InfoLinks, Microsoft,
Define transparent caching with aop?
Explain how cookies work. Give an example of cookie abuse.
What is the difference between a Debug and Release build? Is there a significant speed difference? Why or why not?
In order to get assembly info which namespace we should import?
What is latest version of asp.net mvc? : Asp.Net MVC
What are the different types of caching ?