Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
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
Posted 13-Oct-11 2:30am
Edited 13-Oct-11 2:36am
v2
Comments
Mehdi Gholam at 13-Oct-11 8:36am
   
EDIT-> title edited
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

<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>
  Permalink  
v2
Comments
AlluvialDeposit at 18-Jul-12 4:17am
   
A panel with GroupingText will produce a html fieldset with legend. See example:
http://www.w3schools.com/aspnet/prop_webcontrol_panel_groupingtext.asp
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

To group a set of radiobuttons you will have to set the GroupName Property for all the radio buttons.
 
If you are looking for a groupbox like container(winforms) in ASP.NET then it is not present but you can use RadioButtonList to mimic the similar functionality.
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 5

You have to use Panel Control and for the title use the GroupingText property.
<asp:Panel ID="Panel1" runat="server" GroupingText="My Group" Width="200px">
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox><br/>
<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
</asp:Panel>
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Maciej Los 589
1 OriginalGriff 355
2 CPallini 205
3 RyanDev 161
4 Hard_Rockz 130
0 OriginalGriff 5,689
1 Sergey Alexandrovich Kryukov 4,803
2 Peter Leow 2,974
3 Maciej Los 2,819
4 DamithSL 2,465


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 18 Jul 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100