I get a nullreference exception with the last part of the code.Please help
Results.InnerHtml = Session["MyData"].ToString();
Hi,
Do you mean that the Session["MyData"].ToString() is Null?
Session default value is 10 minutes.
Could you please display more code in the forum?
Best Regards,
Damon
Hi sekai,
It meance your session variable has not having any value in it first set some value to it before setting value check it for NULL and then set
if(Session["MyData"]!=Null)
{
//Your code here
}