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

Explain difference between friend and protected friend?

875


What is a 401 redirect?

875


Can you explain the importance of finalize method in .net?

981


What is asp net_sessionid?

1048


Explain the purpose of storyboard.targetproperty.

899


How would you turn off cookies on a page of a website?

866


What is scope of an application variable in asp.net?

936


Explain the use of view state?

939


Elaborate differentiation between Cache and Application?

924


If you are using two select queries and retrieving data. how do you access second query's result set using data reader?

5506


Can I combine classic asp and asp.net pages?

977


What’s the difference between response .redirect and server.transfer?

945


What is the use of execute non query in asp.net?

903


Explain about Multi-Language integration?

960


What is the postback property in asp.net?

929