How to store a dataset in a viewstate?

Answer Posted / kundal singh

DatasetAdapter sda = new DatasetAdapter("select * from
tablename");

Dataset ds = new Dataset();
sds.fill(ds);

ds.Tables[0].TableName = "tablename";
sda.Fill(ds, "tablename");
sda.Fill(StartIndex, Numbers, ds.Tables)
sda.Fill(0, 25, dt);
sda.Fill(25, 200, ds.Tables["tablename"]);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are ASHX files?

590


What does uri mean?

489


where can i gather the materials for MCP certification

4466


if i wanna deploy my asp.net project to the production server and situation is that i m still not compiled my project i have as-is on my development side now on production server we dont have a visual studio now what kind of settings i need to be to do in webconfig /machine.config file to deploy my project and in iis too....

1592


In What Order Do The Events Of An Aspx Page Execute. As A Developer Is It Important To Undertsand These Events?

563






They mostly asked difference between versions of technologies

932


How asynchronous call can be implemented using delegates?

531


In which event of page cycle is the viewstate available?

564


Which .NET framework supports Web API?

584


What are the security types in asp.net?

572


Describe paging in asp.net?

671


What role “#&&” plays in a querysting?

543


What is state management in .net?

603


What are the different types of cookies in asp.net?

514


What is the difference between a cookie and a pixel?

472