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 are the Difference between asp.net and asp ?

1158


What is the parent class of all the web server control?

955


How is my content secured from unauthorized access?

978


Explain the difference between the web config and machine config.

1041


Should I delete cookies?

973


How can I open ashx file in mobile?

1167


How to make paging concepts in datagrid in ASP.NET?

1036


Explain what is an assembly?

977


Differentiate the session object and application object?

950


What is asp.net introduction?

1016


How can you enable impersonation in the web.config file?

1153


Can one dll file contains the compiled code of more than one .net language?

1004


What are the different types of sessions in asp.net? Name them?

1193


Explain the difference between webfarm and webgardens in .net?

988


How to use push notification?

1045