问题
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