开发者

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

开发者 https://www.devze.com 2022-12-13 13:41 出处:网络
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 beha

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消