Asp Control
ASP.Net
-
Home
-
ASP.Net
-
Asp Control
- Setting and Retrieving the Selected Item in a RadioButton Control Group (VB net)
<%@ Page Language=VB Debug=true %>
Setting and Retrieving the Selected Item in a RadioButton Control Group
id="frmMainForm"
runat="server"
>
id="lblColorSelected"
runat="server"
/>
Select your favorite Color:
id="rdoColorBlue"
text="Blue"
font-size="12pt"
font-name="Comic Sans MS"
groupname="rgColors"
runat="server"
/>
id="rdoColorGreen"
text="Green"
font-size="12pt"
font-name="Comic Sans MS"
groupname="rgColors"
checked="True"
textalign="Left"
runat="server"
/>
id="rdoColorYellow"
text="Yellow"
font-size="12pt"
font-name="Comic Sans MS"
groupname="rgColors"
textalign="Right"
runat="server"
/>
id="butOK"
text="OK"
Type="Submit"
OnClick="SubmitBtn_Click"
runat="server"
/>