ASP.net中的组框 [英] GROUP BOX IN ASP.net
本文介绍了ASP.net中的组框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
HI好友,
我是ASP的新手..C#中是否有像"groupbox"之类的控件将两个控件(单选按钮)放在单个控件中(如panneling)??
plz
我正在等待
HI Buddies,
i m new to ASP ....is there any control like ''groupbox'' in C#..for putting 2 controls(radio buttons) in a single control(like panneling)????
plz
i m waiting
推荐答案
<asp:Panel ID="Panel1" runat="server" GroupingText="My Group" Width="200px">
<asp:TextBox ID="TextBox2" runat="server" /><br/>
<asp:TextBox ID="TextBox3" runat="server" />
</asp:Panel>
请参阅我的提示;
单选按钮,组和JQuery [
See my tip;
Radio Buttons, Groups and JQuery[^]
To将一组radiobuttons
分组,则必须为所有单选按钮设置GroupName
Property.
如果要在ASP.NET中寻找类似groupbox
的容器(winforms
),则该容器不存在,但是可以使用RadioButtonList
来模仿类似的功能.
To group a set ofradiobuttons
you will have to set theGroupName
Property for all the radio buttons.
If you are looking for agroupbox
like container(winforms
) in ASP.NET then it is not present but you can useRadioButtonList
to mimic the similar functionality.
这篇关于ASP.net中的组框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文