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
Can one dll file contains the compiled code of more than one .net language?
Difference between overriding and overloading?
What is http protocol and how it works?
Describe paging in asp.net?
What New Features comes with ASP.NET Web API 2.0?
Explain the difference between asp & asp.net.
What does mvc represent in asp.net? : asp.net mvc
In early binding will the method invoked on com component will verify it?s existance in the system or not ?
We are using Jscriopt validations and at clint site javascript is not running that time validation would work? if yes then how it would behave?
Describe how ASP.NET maintains process isolation for each Web application?
What kind of programming language is ASP.NET?
Why is this service branded with windows livetm?
What is query string? What are its advantages and limitations?
How does a content page differ from a master page?
Describe the difference between inline and code behind - which is best in?