radiobuttons - no list

Discussion in 'ASP .Net Web Controls' started by David Thielen, Jun 22, 2006.

  1. Hi;

    I need to do the following:
    <asp:RadioButton ID="numDays" runat="server" Text="Every" /><asp:TextBox
    ID="dayNumCycle" runat="server"></asp:TextBox> day(s)<br />
    <asp:RadioButton ID="weekdays" runat="server" Text="Every weekday"/>

    which I think means no RadioButtonList. How do I set it so each time one is
    selected, the other goes off?

    --
    thanks - dave
    david_at_windward_dot_net
    http://www.windwardreports.com
     
    David Thielen, Jun 22, 2006
    #1
    1. Advertising

  2. David Thielen

    ValliM Guest

    Hi David,

    You can get one radiobutton selected at a time, by placing it in Group as
    given below.
    <asp:RadioButton ID="numDays" runat="server" Text="Every"
    GroupName="Radio1"/>

    <asp:TextBox ID="dayNumCycle" runat="server"></asp:TextBox> day(s)<br />

    <asp:RadioButton ID="weekdays" runat="server" Text="Every weekday"
    GroupName="Radio1"/>

    Regards,

    Valli

    "David Thielen" <> wrote in message
    news:...
    > Hi;
    >
    > I need to do the following:
    > <asp:RadioButton ID="numDays" runat="server" Text="Every" /><asp:TextBox
    > ID="dayNumCycle" runat="server"></asp:TextBox> day(s)<br />
    > <asp:RadioButton ID="weekdays" runat="server" Text="Every weekday"/>
    >
    > which I think means no RadioButtonList. How do I set it so each time one
    > is
    > selected, the other goes off?
    >
    > --
    > thanks - dave
    > david_at_windward_dot_net
    > http://www.windwardreports.com
    >
     
    ValliM, Jun 22, 2006
    #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. Sean
    Replies:
    1
    Views:
    374
    Ken Cox [Microsoft MVP]
    Aug 6, 2003
  2. RB

    RadioButtons & DataGrid

    RB, Aug 11, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    410
  3. Robert H
    Replies:
    0
    Views:
    438
    Robert H
    Dec 4, 2003
  4. Carlos
    Replies:
    0
    Views:
    282
    Carlos
    Feb 18, 2005
  5. Net Developer

    Need a list of radiobuttons with a specfic format

    Net Developer, Jun 7, 2005, in forum: ASP .Net Web Controls
    Replies:
    3
    Views:
    143
    Visar Gashi, MCP
    Jun 8, 2005
Loading...

Share This Page