G
Guest
How come I can use the following line in my page_load
ViewState["abc123"] = "xxxx"
But when I try the same line of code in another function I get the following compile error
An object reference is required for the nonstatic field, method, or property 'System.Web.UI.Control.ViewState
Do I need to reference ViewState some how thru the HttpContext.current ???
ViewState["abc123"] = "xxxx"
But when I try the same line of code in another function I get the following compile error
An object reference is required for the nonstatic field, method, or property 'System.Web.UI.Control.ViewState
Do I need to reference ViewState some how thru the HttpContext.current ???