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 web.config file in asp?

1145


What are the security types in asp.net?

1042


What is the use of ASP.NET routing?

1042


Can you change a Master Page dynamically at runtime?

950


What is ViewState? What does the "EnableViewState" property do? Why would I want it on or off?

1112


Why mvc is faster than asp.net? : Asp.Net MVC

1035


What is the difference between web.config and machine.config in ASP.NET?

1115


What is in a session cookie?

957


Give me one example of Web API Routing?

1062


Explain the differences between managed and unmanaged code?

1029


What is the function used for removing an event listener?

1013


How can we Validate a Controls in ASP.NET page using JavaScript?

1172


What is the use of view state?

931


To bind columns manually which tags do you need to add within the asp:datagrid ?

954


What are session cookies?

997