Why i can not acces the protected properties in my web application
Posted
by GigaPr
on Stack Overflow
See other posts from Stack Overflow
or by GigaPr
Published on 2010-04-28T11:40:03Z
Indexed on
2010/04/28
11:43 UTC
Read the original article
Hit count: 308
Hi
i have a web application which has a Base class in which i define all the properties common to the web pages. The base class extends System.Web.UI.Page
Furthermore i have a Base User control class where are defined all the properties common to the user controls. the Base User Control extends System.Web.UI.UserControl
all the properties in both base classes are protected.
All the web pages extends the base class .
All the controls extends the base user control class.
The problem is i can not access the properties defined in the base class from the user
controls and I can not extend two classes in the base user controls
The question is
how can i access the properties defined in the Base class from within the user controls?
I hope i have been clear
Thanks
© Stack Overflow or respective owner