我创建了一个asp.net的自定义控件,如果我将其拖动到另一个网页,它工作得很好,符合市场预期,但我想在定制控件,动态创建
Dim lCustomControl as new cldButton
动态地使用它作为
但是我不能解决如何做到这一点,编译器不会将cldButton作为控件来识别。我会将它添加到代码中的后一页中。我已将以下内容添加到web.config。
<controls>
<add tagPrefix="cldButton" tagName="cldButton" src ="~/UserControls/customControlButton.ascx"/>
但它似乎使尽可能多的迪菲昂斯作为我的打字正在
感谢
棒极了,正在使用LoadControl(请参阅下图),但没有想到要投射到界面......该死的你vb.net。欢呼你的帮助 – spacemonkeys 2009-08-10 22:21:07