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?

Answer Posted / kinjal panchal

when you add dataset into dataAdupter like

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

then create one stringwriter
system.io.strinwriter sw=new system.io.stringwriter();

your dataset write into this stringwriter
ds.writeXML(sw);
viewstate["ds"]=sw.tostring();

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use ipostback?

1058


Explain difference between dataset and recordset?

1118


What is session management in web application?

1065


What is use of <% %> in asp.net?

1056


How do I publish my asp.net application to my isp's web server?

1126


Do you know about caching with the datasource controls?

940


What is a web api? Which protocol is used in a web api?

1125


How can we provide the WebParts control functionality to a server control?

1055


What is a reflection?

1032


what are the Custom controls in asp.net?

1083


What is asp.net architecture?

1056


How do you identify that the page is postback?

985


Why mvc is better than asp.net? : Asp.Net MVC

1006


What is server side routing?

968


What is Web API?

1241