开发者

ASP.NET: Custom subtags

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜