Answer Posted / 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 |
Post New Answer View All Answers
What is difference Between Authentication and authorization?
Which method do you use to enforce garbage collection in .net?
What is voluum?
What are session state modes in asp.net?
What is the difference between mvc and asp.net? : Asp.Net MVC
What is the difference between application state and caching?
Give a few examples of page life cycle events.
What is Web API Routing?
What is use of <% %> in asp.net?
What are the versions of garbage collection?
What is data control in asp.net?
What is the difference between a page theme and a global theme?
What is the basic difference between asp and asp.net?
Can you nest updatepanel within each other?
How do I create a web form?