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

What is web api config?

548


in which protocol ASP.NET WEB API Work?

618


can any one find and tell the difference between dot net and php which one is best ? which one we get more salary? which one is stable and which one is best for freshers and also better in future and carrer ? which one we wil get more salary sir ? please send ur valuable suggestions to kiranpulsar2007@gmail.com

1488


What are type/key pairs in client script registration?

568


What is the difference between cookie and session?

504






How do http sessions work?

508


What is manifest in .net framework?

546


1.how to encrpt query string in asp.net? 2.there are 10000 records then i wnat display 5000 records one gridview and 5000 records another grid view what is the process?

1670


What are the contents of cookie?

578


How can you access the properties and controls of master pages from content pages?

522


What does asax stand for?

526


Define web.config in .net?

640


What is the use of dispose method?

567


How do we assign page-specific attributes?

619


What is the difference between c# and .net?

585