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...

Can you store dataset in viewstate?

Answer Posted / rajamurugesh

//Create new dataset :
DataSet ds = new DataSet();
//Store the dataset directly into view state
ViewState["dsn"]=ds;
//retrieve the dataset where it required
GridView1.DataSource = (DataSet)ViewState["dsn"];

Is This Answer Correct ?    44 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does the service stream content?

1087


What is side-by-side execution? Can two applications, one using a private assembly and other using a shared assembly, be stated as side-by-side executables?

1068


Who is using asp.net?

989


What is active web pages?

1008


How can we create custom controls in asp net?

1077


What is the maximum number of classes that can be contained in one dll file?

1259


What r the asp.net list controls and diff. Between them?

1025


What are the types of caching in asp.net?

1154


What is masterpage?

999


How does session authentication work?

978


Explain global assembly cache.

1080


Explain the difference between dataset and datareader.

1070


How can you apply a theme to your asp.net application?

1029


How to make sure that contents of an updatepanel update only when a partial postback takes place (and not on a full postback)?

1034


What is asp net application object?

1063