C
Chris Peeters
Hi,
Using inheritance, doesn't 'protected' mean that derived classes can
access that data if specified as protected in the base class ?
Aparently not: ViewState property is declared as protected in the
Control class. ListBox inherits (indirectly) from Control but the
ViewState property can not be accessed ???
It generates following compiler error :
"Cannot access protected member
'System.Web.UI.Control.ViewState' via a qualifier of type
'System.Web.UI.WebControls.ListBox'; the qualifier must be of
type 'PageCounter' (or derived from it)"
How come ?
Thank you
Chris
Using inheritance, doesn't 'protected' mean that derived classes can
access that data if specified as protected in the base class ?
Aparently not: ViewState property is declared as protected in the
Control class. ListBox inherits (indirectly) from Control but the
ViewState property can not be accessed ???
It generates following compiler error :
"Cannot access protected member
'System.Web.UI.Control.ViewState' via a qualifier of type
'System.Web.UI.WebControls.ListBox'; the qualifier must be of
type 'PageCounter' (or derived from it)"
How come ?
Thank you
Chris