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

Define msil.

960


What is the use of session?

936


What is use of Master Page in ASP.NET web pages?

1055


What is webresource axd?

879


How do session tokens work?

951


what is the difference between response.write() and response.output.write()?

1159


What do you understand from custom control?

1122


Distinguish between Server-side and Client-side code?

1086


What is validation in asp.net?

1075


How can I create master page in asp net?

949


What is event bubbling?

1011


Explain the difference between AutoPostBack and IspostBack in ASP.NET?

1068


What is the life-span of the items in the viewstate?

941


How to implement role based security in asp.net mvc? : Asp.Net MVC

1078


What is Razor View Engine

1078