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

Can you explain page lifecycle in net?

962


What is state management in asp.net with example?

946


What are the advantages and disadvantages of Using Cookies?

963


What I need to create and run an asp.net application?

960


What is a multilingual website?

988


Is asp.net web forms dead?

1093


Why we go for mvc instead of asp.net? : Asp.Net MVC

1046


What is viewstate? What does the "enableviewstate” property do? Whay would I want it on or off?

906


They mostly asked difference between versions of technologies

1368


Define data caching?

908


What is the difference between session object and application object?

1037


How may clustered index we can create in table?

991


Asp pages that worked pefectly on windows 2000 server and iis 5.0 do not work on windows 2003 server with iis 6.0. Asp.net pages work fine. Why?

975


How many types of sessions are there in asp net?

990


Describe the diffeerence between inline and code behind?

1002