Answer Posted / 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 |
Post New Answer View All Answers
What is the server of asp.net?
Explain the difference between asp.net mvc and asp.net webforms
What are user controls?
How does asp.net page work?
What are session state modes?
Explain the features that make asp.net more used framework? : asp.net mvc
Differentiate between file-based dependency and key-based dependency.
What are the benefits of view state?
What is full form of asp.net?
What are the main differences between asp and asp.net?
What are the three parts of an http response?
Which is better php or asp.net?
Why web api is better than wcf?
What is cas?
What methods are fired during the page load? Init()