asp:radiobutton: group name (VB.net) : RadioButton « Asp Control « ASP.Net






asp:radiobutton: group name (VB.net)

<%@ Page Language=VB Debug=true %>
<script runat=server>
Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs)

End Sub
Sub SubmitBtn_Click(Sender As Object, E As EventArgs)

End Sub
</SCRIPT>
<HTML>
<HEAD>
<TITLE>Displaying a Basic RadioButton Control</TITLE>
</HEAD>
<form runat="server">
<BR><BR>
Select your favorite Color:<BR>
<asp:radiobutton 
    id="rdoColorBlue"
    text="Blue" 
    font-size="12pt"
    font-name="Comic Sans MS"
    groupname="rgColors"
    runat="server" 
/>
<BR>
<asp:radiobutton 
    id="rdoColorGreen"
    text="Green" 
    font-size="12pt"
    font-name="Comic Sans MS"
    groupname="rgColors"
    checked="True"
    textalign="Left"
    runat="server" 
/>
<BR>
<asp:radiobutton 
    id="rdoColorYellow"
    text="Yellow" 
    font-size="12pt"
    font-name="Comic Sans MS"
    groupname="rgColors"
    textalign="Right"
    runat="server" 
/>
</form>
</BODY>
</HTML>
           
       








Related examples in the same category

1.On asp:radiobutton selection state changed (VB.net)
2.asp:radiobutton: text align (VB.net)
3.Set asp:radiobutton checked (VB.net)
4.Font-Size, Font-Bold, Font-Name for radio button (VB.net)
5.GroupName for asp:radiobutton (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#)