J
Jimmy
Hi,
I built a webform with a repeater:
<asp:repeater id="rep1" runat="server" DataSource='<%# ar %>'>
<ItemTemplate>
<asp:Button Runat=server Text="<%# Container.DataItem %>" ID="Button1"
NAME="Button1"/>
</ItemTemplate>
</asp:repeater>
in my code behind the webform I have
-an array ar (which is not the problem here)
-the ItemCommand event, which does not fire???:
private void rep1_ItemCommand(object source,
System.Web.UI.WebControls.RepeaterCommandEventArgs e)
{
//some code
}
If I try a asp:LinkButton instead of a asp:Button it DOES fire!!! So the
question is why does this event not fire in case of the aspbutton??? You
should be able to fire a button right???
thanks
JIM
I built a webform with a repeater:
<asp:repeater id="rep1" runat="server" DataSource='<%# ar %>'>
<ItemTemplate>
<asp:Button Runat=server Text="<%# Container.DataItem %>" ID="Button1"
NAME="Button1"/>
</ItemTemplate>
</asp:repeater>
in my code behind the webform I have
-an array ar (which is not the problem here)
-the ItemCommand event, which does not fire???:
private void rep1_ItemCommand(object source,
System.Web.UI.WebControls.RepeaterCommandEventArgs e)
{
//some code
}
If I try a asp:LinkButton instead of a asp:Button it DOES fire!!! So the
question is why does this event not fire in case of the aspbutton??? You
should be able to fire a button right???
thanks
JIM