开发者

How can I group RadioButtons without a GroupBox in VB.NET?

I want to group RadioButtons, but I don't want to use the visible control GroupBox. Is there something like the Java ButtonGroup in VB.NET开发者_开发技巧?


Use the Panel control.


Check out the RadioButtonList

<asp:RadioButtonList id=RadioButtonList1 runat="server">
      <asp:ListItem>Item 1</asp:ListItem>
      <asp:ListItem>Item 2</asp:ListItem>
      <asp:ListItem>Item 3</asp:ListItem>
      <asp:ListItem>Item 4</asp:ListItem>
      <asp:ListItem>Item 5</asp:ListItem>
      <asp:ListItem>Item 6</asp:ListItem>
</asp:RadioButtonList>

Hope this helps.


I'm not sure if you could alter an asp:RadioButtonList Here

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜