hi. i am storing a dataset in a session variable like this.
Session["myds"] = ds ;
then i use a button to call another page. like this.
Response.Redirect("page2.aspx") ;
in the load form of page2.aspx,
i retrieve the session variable like this:
datagrid1.DataSource = (DataSet)Session["myds"];
datagrid1.DataBind();
but the datagrid does not show any rows, and when i do a quickwatch to the session variable containing the data set, the system reports that it is null.
what can the problem be ?
Session["myds"] = ds ;
then i use a button to call another page. like this.
Response.Redirect("page2.aspx") ;
in the load form of page2.aspx,
i retrieve the session variable like this:
datagrid1.DataSource = (DataSet)Session["myds"];
datagrid1.DataBind();
but the datagrid does not show any rows, and when i do a quickwatch to the session variable containing the data set, the system reports that it is null.
what can the problem be ?