Hi Monika
Values in the dataset will be lost once the page is submitted, if you want to preserve it, you can store the datset in a viewstate and then retrieve it, eg as below:
DataSet ds = new DataSet();
//First store in viewstate
ViewState["ds"] = ds;
//then case back to dataset
ds = (DataSet) ViewState["ds"];
//for testing you can display the row count
Response.Write( ds.Tables[0].Rows.Count );
Regading caching, its simple as below:
Cache["ds"] = ds;
Regards
Mike
|