How to store a dataset in a viewstate?

Answers were Sorted based on User's Feedback



How to store a dataset in a viewstate?..

Answer / mahesh kotekar

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

How to store a dataset in a viewstate?..

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

How to store a dataset in a viewstate?..

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

Post New Answer

More ASP.NET Interview Questions

What is CSS? What is the advantage os using CSS in ASP.NET Web Applications?

2 Answers   PCS,


How to bind all the binding controls in a page at once in ASP.NET?

0 Answers   Viscus Infotech,


What is tracing? Where is it used?

0 Answers  


Which authentication uses a combination of windows and iis authentication?

0 Answers  


How ASP and ASP.NET page works? Explain about asp.net page life cycle?

0 Answers  






How do you do validations. Whether client-side or server-side validations are better ?

2 Answers   InfoLinks, Microsoft,


Define transparent caching with aop?

0 Answers  


Explain how cookies work. Give an example of cookie abuse.

0 Answers  


What is the difference between a Debug and Release build? Is there a significant speed difference? Why or why not?

4 Answers  


In order to get assembly info which namespace we should import?

0 Answers  


What is latest version of asp.net mvc? : Asp.Net MVC

0 Answers  


What are the different types of caching ?

1 Answers  


Categories