Radio button assignment snafu

C

Chumley the Walrus

I'm trying to parse the selected value from a group of radiobuttons,
but the below code for the radio buttons doesnt work, whereas the one
for the text box does.
<% dim dateinbox, sportsel
dateinbox = TextBox1.text
sportsel = Sport.text %>

<asp:TextBox id="TextBox1" runat="server"></asp:TextBox>

<asp:RadioButton id="sport1" GroupName="Sport" text="mlb" value="mlb"
runat="server">
</asp:RadioButton>
<asp:RadioButton id="sport2" runat="server" GroupName="Sport"
text="nfl" value="nfl" /></asp:RadioButton>

...if i try to assign the same id "sport" to the radio buttons, i get
a "there is already an ID with the name 'sport' error

?????
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top