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
How can we make sure that Web API returns JSON data only?
What does clearing cache?
Why do we need Sessions?
Explain the difference between array and linkedlist?
How do you initiate validation on the server manually? What are two situations when you might you want to do that?
In ViewState How much lifespan items stored?
What are the various types of validation controls provided by asp.net?
How to retrieve user name in case of Window Authentication?
How you will handle session when deploying application in more than a server?
Explain the use of resource manager class in .net.
What is the difference between Hash table and Array list?
What is global.asax file used for?
How can we inherit a static variable?
In order to get assembly info which namespace we should import?
Explain the difference between server.transfer and response.redirect? Why would I choose one over the other?