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 / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the application pool?

1007


What is session in http request?

1070


I’m having some trouble with cas. How can I diagnose my problem?

1087


What are the different web pages?

982


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

1006


Explain the purpose of storyboard.targetproperty.

989


Explain the different types of assemblies?

1023


What is the difference between server-side scripting and client-side scripting?

1050


Explain program to call the js function when the change is being made in the dropdown list made in asp.net mvc? : asp.net mvc

1048


What are the advantages of asp.net mvc framework? : asp.net mvc

1072


What is web api vs wcf?

1068


How to use multiple scriptmanager controls in a web page?

1157


What is a form tag?

934


How to do parallel database export in remote SQL Server in ESSL time track. It is working for local server but not working for remote SQL Server

6720


1.What r collections? 2.What is .pdb file? 3.Is it possible to provide access to users in master page? 4.What is dirty n Phantom Read(SQL)? 5.What r different isolation levels(SQL)? 6.How to set authentication mode in web.config file?

2278