for the current page, define a member variablepublic dataset ds = new DataSet();if you want to persist across requests, use a session variableSession["MyDataSet"] = new DataSet();
..
DataSet ds = (DataSet)Session["MyDataSet"];you can also use Application or Cache variable if the dataset is session-independent