C
craigkenisston
I'm creating a paging control in which I want to use a session saved
dataview :
public class PagingControl : System.Web.UI.UserControl
....
....
public void whatever
DataView dw;
if (Session["Results"] != null)
{
dw = (DataView)Session["Results"];
}
else
{
return;
}
At the point of the "if" statement I get a null object reference error.
So, may be I'm trying to do something not allowed ...
Any idea ?
dataview :
public class PagingControl : System.Web.UI.UserControl
....
....
public void whatever
DataView dw;
if (Session["Results"] != null)
{
dw = (DataView)Session["Results"];
}
else
{
return;
}
At the point of the "if" statement I get a null object reference error.
So, may be I'm trying to do something not allowed ...
Any idea ?