Click here to Skip to main content
12,950,399 members (68,238 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
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
Updated 13-Oct-11 2:36am
v2
Comments
Mehdi Gholam 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 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
Top Experts
Last 24hrsThis month
OriginalGriff 5,829
CHill60 3,460
Maciej Los 2,953
Jochen Arndt 1,975
ppolymorphe 1,820


Advertise | Privacy | Mobile
Web02 | 2.8.170525.1 | Last Updated 18 Jul 2012
Copyright © CodeProject, 1999-2017
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