Radio button assignment snafu

Discussion in 'ASP .Net Web Controls' started by Chumley the Walrus, Jun 21, 2004.

  1. 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

    ?????
    Chumley the Walrus, Jun 21, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Norair
    Replies:
    0
    Views:
    678
    Norair
    May 16, 2006
  2. Scott D Johnson
    Replies:
    1
    Views:
    1,045
    Scott D Johnson
    Sep 27, 2006
  3. Hiten
    Replies:
    1
    Views:
    608
    Vidar Petursson
    May 26, 2004
  4. .Net Sports

    Changing string to datetime snafu

    .Net Sports, Jul 15, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    88
    .Net Sports
    Jul 15, 2005
  5. J Krugman

    Another use vs. require snafu

    J Krugman, Mar 5, 2005, in forum: Perl Misc
    Replies:
    5
    Views:
    96
    Shawn Corey
    Mar 5, 2005
Loading...

Share This Page