E
Eskimo
I get displayed values ok, but nothing in the event handler (
<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>
Problem: repeater radio button(s) not handled
I tried
private void InitializeComponent()
{
RadioButton1 = new RadioButton();
RadioButton2 = new RadioButton();
RadioButton1.GroupName="Files";
RadioButton2.GroupName="Files";
this.Load += new System.EventHandler(this.Page_Load);
}
but that didn't do anything with the repeater so once again (
<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>
Problem: repeater radio button(s) not handled
I tried
private void InitializeComponent()
{
RadioButton1 = new RadioButton();
RadioButton2 = new RadioButton();
RadioButton1.GroupName="Files";
RadioButton2.GroupName="Files";
this.Load += new System.EventHandler(this.Page_Load);
}
but that didn't do anything with the repeater so once again (