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 3:30am
Edited 13-Oct-11 3:36am
Mehdi Gholam253.4K
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 OriginalGriff 350
1 Jochen Arndt 190
2 Richard MacCutchan 135
3 Sergey Alexandrovich Kryukov 120
4 DamithSL 105
0 OriginalGriff 6,045
1 DamithSL 4,611
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,310


Advertise | Privacy | Mobile
Web04 | 2.8.141220.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