问题描述
是否有可能在一个对象中加载ASCX
没有实现INamingContainer,但保留了
事件等的功能?
我知道我不能使用当前的Page函数执行此操作,但是如果我实现另一个处理程序,或者创建另一种类型的UserControl
没有实现INamingContainer和一个函数来做什么
LoadControl确实......不知道。
只是想知道是否有有没有办法做到这一点。
谢谢。
Is there any possibility to make an ASCX be loaded in an object that
does not implement INamingContainer, but mantain the funcionality of
events and etc?
I know i can`t do this using the current Page functions, but if I
implement another handler, or create another kind of UserControl that
doesn`t implement INamingContainer and a function that does what
LoadControl does... don`t know.
Just want to know if there is any way to do this.
Thanks.
推荐答案
For我可以使用#include,甚至用户控件......
我需要的是一个不扩展INamingContainer的用户控件。它必须是一个编译控件来保存所有代码,事件和方法。
For that i could use #include, or even user controls....
What i need is an user control that doesn''t extend INamingContainer. It
must be a compiled control to keep all the code, events and methods.
为此,我可以使用#include,甚至是用户控件......
我需要的是一个用户控件,没有扩展INamingContainer。它必须是一个编译控件来保存所有代码,事件和方法。
For that i could use #include, or even user controls....
What i need is an user control that doesn''t extend INamingContainer. It
must be a compiled control to keep all the code, events and methods.
这篇关于没有INamingContainer的ASCX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!