GroupName for asp:radiobutton (VB.net) : RadioButton « Asp Control « ASP.Net






GroupName for asp:radiobutton (VB.net)

<%@ Page Language=VB Debug=true %>
<script runat=server>
Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs)
 
End Sub
</SCRIPT>
<HTML>
<HEAD>
<TITLE>RadioButton Controls Sample Page</TITLE>
</HEAD>
<BODY>
<form runat="server">
<Font Face="Tahoma" Size="+1">
<asp:Label 
    id="lblMessage" 
    Font-Size="12pt"
    Font-Bold="True"
    Font-Name="Lucida Console"
    Text="What is your favorite color?"
    runat="server"
/>
<BR><BR>
<asp:RadioButton 
    id="rdoColorRed"
    Text="Red" 
    Font-Size="12pt"
    Font-Name="Comic Sans MS"
    GroupName="rgColor"
    Checked="True"
    runat="server" 
/>
<asp:RadioButton 
    id="rdoColorBlue"
    Text="Blue" 
    Font-Size="12pt"
    Font-Name="Comic Sans MS"
    GroupName="rgColor"
    runat="server" 
/>
<asp:RadioButton 
    id="rdoColorGreen"
    Text="Green" 
    Font-Size="12pt"
    Font-Name="Comic Sans MS"
    GroupName="rgColor"
    runat="server" 
/>
<BR><BR>
<asp:Label 
    id="lblMessage2" 
    Font-Size="12pt"
    Font-Bold="True"
    Font-Name="Lucida Console"
    Text="What is your favorite day?"
    runat="server"
/>
<BR><BR>
<asp:RadioButton 
    id="rdoDayMonday"
    Text="Monday" 
    TextAlign="Left"
    Font-Size="12pt"
    Font-Name="Comic Sans MS"
    GroupName="rgDay"
    Checked="True"
    runat="server" 
/>
<asp:RadioButton 
    id="rdoDayTuesday"
    Text="Tuesday" 
    TextAlign="Left"
    Font-Size="12pt"
    Font-Name="Comic Sans MS"
    GroupName="rgDay"
    runat="server" 
/>
<asp:RadioButton 
    id="rdoDayWednesday"
    Text="Wednesday" 
    TextAlign="Left"
    Font-Size="12pt"
    Font-Name="Comic Sans MS"
    GroupName="rgDay"
    runat="server" 
/>
</Font>
</Form>
</BODY>
</HTML>
           
       








Related examples in the same category

1.On asp:radiobutton selection state changed (VB.net)
2.asp:radiobutton: group name (VB.net)
3.asp:radiobutton: text align (VB.net)
4.Set asp:radiobutton checked (VB.net)
5.Font-Size, Font-Bold, Font-Name for radio button (VB.net)
6.Check a asp:radiobutton (VB.net)
7.Radio button auto post back (C#)
8.Watch TextBox, CheckBox and radiobutton auto post back action (C#)
9.Use 'Switch' to read Radio Button Choice (C#)
10.Get selected RadioButton (C#)
11.Read RadioButton selection (C#)