开发者

ASP.NET: Custom subtags

开发者 https://www.devze.com 2023-01-18 21:12 出处:网络
Can I develop a control which allows me to do something like this: <MyRadioList> <MyRadioButton/>

Can I develop a control which allows me to do something like this:

<MyRadioList>
  <MyRadioButton/>
  <MyRadioButtonWithInfoButton/>
  <MyRadioButton/>
  <MyRadioButtonWithBlueColor/>
</MyRadioList>

That is, I can place my own control-tags inside my radio 开发者_如何学运维list.

Can it be done with templated user controls?


Create a new RadioList control by extending the built-in one. Same for the ListItem object, too. You don't need a template for this situation.

0

精彩评论

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