Is it possible top opt-out of INamingContainer if it's implemented by a superclass?
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)
.
As far as I know this is not possible.
精彩评论