Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 / mahesh kotekar

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 viewstate..

Is This Answer Correct ?    24 Yes 4 No

How to store a dataset in a viewstate?..

Answer / jitender

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 in the viewsate

Is This Answer Correct ?    12 Yes 2 No

How to store a dataset in a viewstate?..

Answer / pradhan prasanta kumar

Hi..
store a dataset in a view state is not Recommend.
//da(sqldataadapter);dataset dSet
da.Fill(dSet);
System.IO.StringWriter sw = new System.IO.StringWriter();

// Write the DataSet to the ViewState property.
dSet.WriteXml(sw);
ViewState["dSet"] = sw.ToString();

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More ASP.NET Interview Questions

Difference between Array and ArrayList? How Array is benifitful than ArrayList?

3 Answers   Tech Mahindra,


What is boxing and how it is done internally?

1 Answers   Microsoft,


can we transfer data from one page to another page using viewstate if so how?if not y?

1 Answers   Patni,


How do we implement bundling in MVC?

0 Answers   B-Ways TecnoSoft,


What is JIT and how is works ?

1 Answers   Patni,


What is the difference between response.redirect and server.transfer, how to choose one among the other?

3 Answers   247Customer,


Hi! Could any 1 please suggest me a free practice online exam for asp.net exams.. thanks

1 Answers  


ADO.Net - how to get data from database and bind to the controls -- write this small code

3 Answers   Syntel,


Which template must you provide, in order to display data in a Repeater control?

3 Answers   Siebel Systems, Wipro,


Explain the various authentication mechanisms in asp.net.

0 Answers  


What is server transfer?

0 Answers  


what is view state?

10 Answers   Satyam,


Categories