T
Terry Mulvany
I have a 'BasePage' (BasePage.cs) derived from System.Web.UI.Page that all
my pages inherit from. I need to set some properties (either in the OnInit
or constructor) based on a potential Request.Cookie or a name/value pair in
Request.QueryString.
But I am getting a
'System.NullReferenceException: Object reference not set to an instance of
an object.'
error when I try to view any aspx derived from this BasePage.
I am using HttpContext.Current.Request.Cookies as well as for the
QueryString but still get this error.
Any ideas!?
Thank you.
my pages inherit from. I need to set some properties (either in the OnInit
or constructor) based on a potential Request.Cookie or a name/value pair in
Request.QueryString.
But I am getting a
'System.NullReferenceException: Object reference not set to an instance of
an object.'
error when I try to view any aspx derived from this BasePage.
I am using HttpContext.Current.Request.Cookies as well as for the
QueryString but still get this error.
Any ideas!?
Thank you.