Radio Button List Question

Discussion in 'ASP General' started by Poppy, Dec 4, 2003.

  1. Poppy

    Poppy Guest

    I have a radio button list

    value = 1, text = "Option 1"
    value = 2, text = "Option 2"

    It might soung stupid but how do I get the first item to display if I enter
    the number 1 and the second item if I enter the number 2.

    Cheers Big Ears
    Poppy, Dec 4, 2003
    #1
    1. Advertising

  2. Poppy

    Ray at Guest

    Enter it into what?

    <%
    sVar = "2"
    %>

    <input type="radio" value="1"<% If sVar = "1" Then Response.Write " checked"
    %>>Option 1
    <input type="radio" value="2"<% If sVar = "2" Then Response.Write " checked"
    %>>Option 2

    Ray at work

    "Poppy" <> wrote in message
    news:%...
    > I have a radio button list
    >
    > value = 1, text = "Option 1"
    > value = 2, text = "Option 2"
    >
    > It might soung stupid but how do I get the first item to display if I

    enter
    > the number 1 and the second item if I enter the number 2.
    >
    > Cheers Big Ears
    >
    >
    >
    Ray at, Dec 4, 2003
    #2
    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. Replies:
    1
    Views:
    3,912
    John C. Bollinger
    Feb 24, 2006
  2. Scott D Johnson
    Replies:
    1
    Views:
    1,046
    Scott D Johnson
    Sep 27, 2006
  3. Yankee Imperialist Dog

    radio button list question

    Yankee Imperialist Dog, Aug 29, 2008, in forum: ASP .Net
    Replies:
    2
    Views:
    403
    Yankee Imperialist Dog
    Aug 29, 2008
  4. Hiten
    Replies:
    1
    Views:
    609
    Vidar Petursson
    May 26, 2004
  5. puja

    checkbox list and radio button list

    puja, May 21, 2006, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    205
    mnichols
    May 24, 2006
Loading...

Share This Page