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

Which dll handles the request of .aspx page?

564


Hi All, Im an MCA holder with 3+ years of experience in asp.net. Now i want to move to some good government job. I have no idea about different categories of exams held & which one can be applicable for my education background. I have done B.A with MCA. Please help me out with your valuable suggestions. I would be very grateful. Thanks Anuj

2844


How to comment out asp.net tags?

633


What is repository pattern in mvc.net? : asp.net mvc

530


What is the use of global.asax file?

552






What threading model used in asp and asp.net?

578


What is recordset asp?

548


What is variable and constant in .net programming language?

397


Describe a bubbled event and how it is used ?

621


What is difference in .net 1.1 and .net 2.0?

592


How can u debug your .net application?

587


Is asp.net mvc front end or backend? : Asp.Net MVC

494


We Only Know The Total Number Of Feet In The Farmyard. Write A Program that will compute the total number of rabbits and chickens in the farmyard. Assume number of feet in the farmyard are 40. how many rabbits and chickens are?

443


Explain the difference between Repeater and Data list control in ASP.NET?

624


What is client side state management?

510