How to store a dataset in a viewstate?

Answers were Sorted based on User's Feedback

How to store a dataset in a viewstate?..

Answer / kinjal panchal

when you add dataset into dataAdupter like

dataset ds=new dataset();
dataAdupter da=new dataAdupter();

then create one stringwriter sw=new;

your dataset write into this stringwriter

Is This Answer Correct ?    3 Yes 1 No

How to store a dataset in a viewstate?..

Answer / kundal singh

DatasetAdapter sda = new DatasetAdapter("select * from

Dataset ds = new Dataset();

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

How to store a dataset in a viewstate?..

Answer / alb.shah

Dataset can be stored in the viewstate. any object that
can be serializable can be stored in the viewstate. We can
serialize the dataset and then can be saved int he

Is This Answer Correct ?    4 Yes 6 No

Post New Answer

More ASP.NET Interview Questions

What base class do all Web Forms inherit from?

2 Answers   Siebel Systems,

Why would a company use an application service provider?

0 Answers  

1. Briefly describe your ideal job?

1 Answers   Swatz Oils, Swetz Oil,

what is new debug tools in ?

1 Answers  

Describe the difference between a Thread and a Process?

4 Answers  

How many types of web application ?

1 Answers  

Name the method that needs to be invoked on the dataadapter control to fill the generated dataset with data?

0 Answers  

what is the dllhell? why we use the dllhell?

4 Answers  

Can you explain the importance of finalize method in .net?

0 Answers  

How do you insert multiple rows from a grid view to database table under a single transaction?

1 Answers  

Diff between web user control and web custom control?

0 Answers  

What data type does the RangeValidator control support?

3 Answers   Visual Soft,