Can you store dataset in viewstate?

Answer Posted / masthan

yes,you can store dataset into viewstate directly.
dataset ds=new dataset();
viewstate["newds"]=ds;
datagrid1.dataspurce=(dataset)viewstatw["newds"];
datagrid.databind();

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If I have more than one version of one assemblies, then how will I use old version (how/where to specify version number?) In my application?

520


What is base class of button control in .net?

521


What is comparevalidator?

521


What is the difference between sealed vs static class?

577


What are the steps to follow to host a web application on a web server?

591






What are the page life cycle events?

493


Is web config mandatory?

536


To display data in a Repeater control which template you provide?

586


Is sql backend or frontend?

553


Explain what is an abstract class?

552


What is the most appropriate lifetime for a database connection/orm context in an asp.net mvc application? : Asp.Net MVC

530


What is difference between web api and web services?

533


How Session outproc in Sqlserver stored?

2303


How to include silver light .xap page into asp.net web application and what is the purpose of using silverlight application?

2238


What is & in a url?

527