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
Why does my asp.net file have multiple tag with runat=server?
If there are multiple update panels on the page say upd1 and upd2. There is a button placed in upd1. How can you stop upd2 to update when button placed in upd1 is clicked?
How do u deploy your asp.net application?
Explain what is postback in asp. Net?
How does windows service lifecycle differ from a .standard. Exe?
How can u deifne the benefits and limitation of using Viewstate for state management?
How do I upload a file from my ASP.NET page?
Why do we need url encoding?
What is the importance of Global.asax in ASP.NET?
How to find last error which occurred in Asp.net ?
What is Difference between Production Serves and Development Servers? And Suppose, m adding/deleting C# file in a project based on the Specific Requirement. These Files are Automatically updated in Production Servers? So Which tool is needed to do This One?
What is a web farm?
What is ispostback property?
Describe the method to create a permanent cookie?
What is the difference between dynamic SGA and static SGA?