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?

Answers were Sorted based on User's Feedback



Can you store dataset in viewstate?..

Answer / 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

Can you store dataset in viewstate?..

Answer / shashikesh mishra

yes.We can store dataset in view state.Not a dataset any
serialible object type(datatable,dataset etc..) to be store
in view state.

Is This Answer Correct ?    23 Yes 5 No

Can you store dataset in viewstate?..

Answer / lalit pradhan

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

Is This Answer Correct ?    5 Yes 1 No

Can you store dataset in viewstate?..

Answer / masthan

yes,you can store dataset into viewstate directly.
dataset ds=new dataset();
viewstate["newds"]=ds;
datagrid1.dataspurce=(dataset)viewstatw["newds"];
datagrid.databind();

Is This Answer Correct ?    4 Yes 2 No

Can you store dataset in viewstate?..

Answer / chinmoy

Yes, you can store any serializable data in viewstate.

Is This Answer Correct ?    3 Yes 2 No

Can you store dataset in viewstate?..

Answer / venkat

//create datatable
datatable dt = new datatable();
//Create new dataset :

DataSet ds = new DataSet();
ds.table.add(dt);
//Store the dataset directly into view state
ViewState["dsn"]=ds.table[0];
//retrieve the dataset where it required
DataSet ds = (DataSet)ViewState["dsn"];
GridView1.DataSource = ds.Tables[0];
GridView1.DataBind();

Is This Answer Correct ?    1 Yes 3 No

Can you store dataset in viewstate?..

Answer / mansing patil

No, You cant directly store Dataset in ViewState. You can
get XML from dataset store that Xml in ViewState. While
getting From ViewState convert to xml and then from xml to
dataset



Is This Answer Correct ?    9 Yes 22 No

Post New Answer

More ASP.NET Interview Questions

What are the elements of a website?

0 Answers  


What is the use of service provider?

0 Answers  


When using the Pager object, inorder to know which page to go, which property you have to set to grid?

0 Answers   Siebel,


Which is better viewstate or session?

0 Answers  


How do I debug an ASP.NET application that wasn't written with Visual Studio.NET and that doesn't use code-behind?

1 Answers  


please can any describe 'Master Page' in ASP.Net 2.0

4 Answers  


How to integrate angular 8 with asp.net mvc 5? : Asp.Net MVC

0 Answers  


how can i deploy a asp.net webapplication.in a company so that all employees may access application on their different computers and share a single database. plz tell me the steps to do it..thanks.

1 Answers  


What do you mean by View State and what is its role?

0 Answers   Wipro,


In your ASP.NET 2.0 web application you want to display an image that is selected from a collection of images. What approach will you use to implementing this?

0 Answers   HCL,


What is the Difference between MVC And MVP design pattrens

0 Answers   Symphony,


What is Difference between Callbacks and Postback in ASP.NET?

11 Answers  


Categories