G
Guest
Hello!,
I have a using system.web.sessionstate directive one the top of each of two
web pages. On the first page I have the dataadapter, dataconnection, and
dataset (also in the component tray). I have used Session.Add().
Session.Add("dadapter", sqlDataAdapter1);
Session.Add("dset", ds);
On the other page I have used a cast to get at the Session objects that I
supposedly stored on the other page.
SqlDataAdapter da2 =
(System.Data.SqlClient.SqlDataAdapter)Session["dadapter"]);
Dataset ds2 = (System.Data.DataSet)Session["dset"]);
My code on the page where I want to use the data from the database(The other
page has the ADO in the component tray) says
Session("dadapter")=null
Session("dset")=null
I looked through the MSDN to see if I could get some error messages out of
the session object, but no go. As far as the ASP.NET I get the error "object
reference not set to an instance of an object." What could be wrong?
I have a using system.web.sessionstate directive one the top of each of two
web pages. On the first page I have the dataadapter, dataconnection, and
dataset (also in the component tray). I have used Session.Add().
Session.Add("dadapter", sqlDataAdapter1);
Session.Add("dset", ds);
On the other page I have used a cast to get at the Session objects that I
supposedly stored on the other page.
SqlDataAdapter da2 =
(System.Data.SqlClient.SqlDataAdapter)Session["dadapter"]);
Dataset ds2 = (System.Data.DataSet)Session["dset"]);
My code on the page where I want to use the data from the database(The other
page has the ADO in the component tray) says
Session("dadapter")=null
Session("dset")=null
I looked through the MSDN to see if I could get some error messages out of
the session object, but no go. As far as the ASP.NET I get the error "object
reference not set to an instance of an object." What could be wrong?