how do I get the checked event to fire with a radio button?

Discussion in 'ASP .Net Web Controls' started by Eskimo, Feb 7, 2005.

  1. Eskimo

    Eskimo Guest

    <asp:repeater id="Repeater1" runat="server">
    <HeaderTemplate>
    <table class="" cellspacing="4" cellpadding="4" width="100%">
    <tr style="background-color:#E0E0E0">
    <td></td>
    <td>Path</td>
    <td>File</td>
    </tr>
    </HeaderTemplate>
    <ItemTemplate>
    <tr style="background-color:#F0F0F0">
    <td>
    <asp:RadioButton id="RadioButton1" GroupName="Files"
    OnCheckedChanged=RadioButton1_CheckedChanged AutoPostBack=True Text='<%#
    DataBinder.Eval(Container.DataItem,"Path") %>' runat="server">
    </asp:RadioButton>
    </td>
    <td align="left"><%# DataBinder.Eval(Container.DataItem,"Path")
    %></td>
    <td align="left"><%# DataBinder.Eval(Container.DataItem,"File")
    %></td>
    </tr>
    </ItemTemplate>
    <AlternatingItemTemplate>
    <tr style="background-color:#E0E0E0">
    <td>
    <asp:RadioButton id="Radiobutton2" GroupName="Files"
    OnCheckedChanged=RadioButton2_CheckedChanged AutoPostBack=True Text='<%#
    DataBinder.Eval(Container.DataItem,"Path") %>' runat="server">
    </asp:RadioButton>
    </td>
    <td align="left"><%# DataBinder.Eval(Container.DataItem,"Path")
    %></td>
    <td align="left"><%# DataBinder.Eval(Container.DataItem,"File")
    %></td>
    </tr>
    </AlternatingItemTemplate>
    <FooterTemplate>
    </table>
    </FooterTemplate>
    </asp:repeater>


    --
    tym, Eskimo
     
    Eskimo, Feb 7, 2005
    #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. hy
    Replies:
    0
    Views:
    398
  2. Carlos
    Replies:
    1
    Views:
    878
    Jc Morin
    Feb 24, 2005
  3. RisingFish
    Replies:
    0
    Views:
    381
    RisingFish
    Oct 10, 2006
  4. Hiten
    Replies:
    1
    Views:
    626
    Vidar Petursson
    May 26, 2004
  5. Ray
    Replies:
    1
    Views:
    136
Loading...

Share This Page