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
Mehdi Gholam233.7K
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 365
1 Nirav Prabtani 268
2 Richard Deeming 215
3 CHill60 170
4 _Amy 145
0 OriginalGriff 8,104
1 Sergey Alexandrovich Kryukov 7,045
2 Maciej Los 4,039
3 Peter Leow 3,738
4 CHill60 2,912


Advertise | Privacy | Mobile
Web03 | 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