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

How to find last error which occurred?

624


What is preprocessor in .net? Where it use?

619


What is session handling in a webfarm, how it can work with its limits?

716


In the Repeater control which way you can edit?

727


Is there any alternative to avoid name collisions other then Namespaces?

673






What are the authentication types in asp.net?

660


What is postback request?

635


What is ispostback method in asp.net? Why do we use that?

703


Can we override the enablepartialrendering property of the scriptmanager class?

743


What is custom events?

659


How to turn off cookies for a page?

669


What is the purpose of App_Code folder in ASP.NET? Why we this?

732


Can you use c# without .net?

638


What does mvc represent in asp.net? : asp.net mvc

623


What is manifest in .net framework?

642