Need to have TextBoxes in a RadioButtonList

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • tomh

    #1

    Need to have TextBoxes in a RadioButtonList

    I need to have TextBoxes included in the ListItems of a
    RadioButtonList . So it would look something like this:

    <asp:RadioButto nList runat="server"
    id="rblError"
    CellPadding="3" >

    <asp:ListItem
    Value="1">Stuck
    </asp:ListItem>

    <asp:ListItem
    Value="2">Error Number. Enter Error Number:{ASP:TEX TBOX}
    </asp:ListItem>

    <asp:ListItem
    Value="3">Memor y Manager Error. Enter Line Number {ASP:TEXTBOX}
    </asp:ListItem>

    <asp:ListItem
    Value="4">Other : {ASP:TEXTBOX}
    </asp:ListItem>

    </asp:RadioButton List>

    Anyone know how to do this? or suggestions on any other way I could
    accomplish this?

    Thanks
    Tom

  • marshal

    #2
    RE: Need to have TextBoxes in a RadioButtonList

    <asp:RadioButto nList id="RadioButton List1" runat="server">
    <asp:ListItem Value="list1">l ist1</asp:ListItem>
    <asp:ListItem Value="list2">< input type="text" id = "txt"></asp:ListItem>
    </asp:RadioButton List>

    You must use some client method save txt's value to a hide control or others.
    --
    Help you,Help me.


    "tomh" wrote:
    [color=blue]
    > I need to have TextBoxes included in the ListItems of a
    > RadioButtonList . So it would look something like this:
    >
    > <asp:RadioButto nList runat="server"
    > id="rblError"
    > CellPadding="3" >
    >
    > <asp:ListItem
    > Value="1">Stuck
    > </asp:ListItem>
    >
    > <asp:ListItem
    > Value="2">Error Number. Enter Error Number:{ASP:TEX TBOX}
    > </asp:ListItem>
    >
    > <asp:ListItem
    > Value="3">Memor y Manager Error. Enter Line Number {ASP:TEXTBOX}
    > </asp:ListItem>
    >
    > <asp:ListItem
    > Value="4">Other : {ASP:TEXTBOX}
    > </asp:ListItem>
    >
    > </asp:RadioButton List>
    >
    > Anyone know how to do this? or suggestions on any other way I could
    > accomplish this?
    >
    > Thanks
    > Tom
    >
    >[/color]

    Comment

    • Eliyahu Goldin

      #3
      Re: Need to have TextBoxes in a RadioButtonList

      Tom,

      You need to male an html table with 2 columns. In the first column you will
      put the radio buttons and in the second the textboxes.

      Eliyahu

      "tomh" <tomjhaskell@ya hoo.com> wrote in message
      news:1120682330 .383887.255940@ g47g2000cwa.goo glegroups.com.. .[color=blue]
      > I need to have TextBoxes included in the ListItems of a
      > RadioButtonList . So it would look something like this:
      >
      > <asp:RadioButto nList runat="server"
      > id="rblError"
      > CellPadding="3" >
      >
      > <asp:ListItem
      > Value="1">Stuck
      > </asp:ListItem>
      >
      > <asp:ListItem
      > Value="2">Error Number. Enter Error Number:{ASP:TEX TBOX}
      > </asp:ListItem>
      >
      > <asp:ListItem
      > Value="3">Memor y Manager Error. Enter Line Number {ASP:TEXTBOX}
      > </asp:ListItem>
      >
      > <asp:ListItem
      > Value="4">Other : {ASP:TEXTBOX}
      > </asp:ListItem>
      >
      > </asp:RadioButton List>
      >
      > Anyone know how to do this? or suggestions on any other way I could
      > accomplish this?
      >
      > Thanks
      > Tom
      >[/color]


      Comment

      Working...