can I define my own panel control with asp.net usercontrols

孤街浪徒 提交于 2019-12-25 04:26:51

问题


I want something like that:

<my:MyFancyPanel>
   <asp:Label Text="Hello">
</my:MyFancyPanel>

I tried but it seems my usercontrol doesn't accept any content.


回答1:


you need to make it a Templated Usercontrol



来源:https://stackoverflow.com/questions/3829728/can-i-define-my-own-panel-control-with-asp-net-usercontrols

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!