Is it possible top opt-out of INamingContainer if it's implemented by a superclass?

Posted by michielvoo on Stack Overflow See other posts from Stack Overflow or by michielvoo
Published on 2009-12-02T16:18:01Z Indexed on 2010/03/25 20:43 UTC
Read the original article Hit count: 357

Filed under:
|
|

The UserControl class inherits from TemplateControl which implements INamingContainer. Since this is "only a marker interface" I was wondering if it's possible to opt-out of the behavior that this interface brings with it.

I am developing a templated control based on a user control, and I want the controls inside the template to be accessible in the page without using FindControl(id).

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about usercontrols