aspdotnet_website_programming thread: State Management....Access ViewState of Page in a User Control
in page_load of test.aspx i assign ViewState["ActualMenu"] = "1";
in test.aspx I use a user control test.ascx, and from this user control I
tried to access the ViewState of the Page object
ViewState["ActualMenu"] is null (that's ok, because every control seems to
have it's own ViewState), I also tried this.Page.ViewState["ActualMenu"]
witch i supposted that will work (It does work, but only in the debugger
watch-window) but it produces an compile error: cannot access protected
member......
any solutions? (with or without viewstate)
thank you