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

Why asp.net is better than php?

985


When you are running a component within ASP.NET, what process is it running within on Windows XP? Windows 2000? Windows 2003?

1064


Do you support digital rights management to protect my videos?

857


How to disable validator control by client side JavaScript?

1070


Describe how passport authentication works.

1128


What is the application pool?

966


What is the difference between globalization and localization?

985


Explain the advantages of passport authentication.

927


Explain what is viewstate?

999


Which of the following .NET framework supports Web API?

1088


Explain the server control events of asp.net ?

1003


Describe paging in asp.net?

1156


What are the Types of chaching. How to implement caching

1027


Mention the namespace that is used to include .net data provider for sql server in .net code?

965


What is authorization in asp.net?

1083