Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclassing pages
Message
 
To
09/12/2002 10:04:40
Rex Mahel
Realm Software, Llc
Ohio, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00730874
Message ID:
00730966
Views:
17
Hi Rex,

The reason why you are getting the "shadowed" message is because you can't inherit the html portion of the ASP.NET, just the Page class itself. When you drop a label on the subclassed page, ASP.NET sees that as a new object that has the same name as an object referenced in the parent class. It therefore needs you to delare it as shadowed so .NET can manage the references.

>All,
>
>I have several forms with similar functionality from which I want to create a parent class and from these forms subclasses of the parent class. Part of the form is an error label that I want to access from the parent class. I can include the WITHEVENTS declaration, but in the subclasses I get the same declaration and a warning that the label declaration should be SHADOWed from the parent class. Is there a way to include the declaration in the parent class without the warning in the child class?
>
>TIA
>
>Rex
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform