N
Nicolas Chevet
Hi!
I've got a page with a datalist and a nested repeater in it to get
"categories" and "sub categories".
I've got link button in the datalist and in the repeater. The ones in the
datalist work fine assuming it fire itemcommand event on postback. The
problem is that the link button in the nested repeater doesnt raise any
event.
How can i catch the click event of the nested link button?
Thanks a lot.
Here's a piece of code:
<asp:datalist id="CategorieList" runat="server" HorizontalAlign="Center"
Width="90%" RepeatColumns="2"
BorderWidth="1px" GridLines="Horizontal" CellPadding="3"
BackColor="White" BorderStyle="None"
BorderColor="#E7E7FF">
<ItemTemplate>
<B>
<asp:LinkButton id=LinkFonction runat="server"
CommandName='<%#DataBinder.Eval( Container.DataItem, "strNom" )%>'
CommandArgument='<%#DataBinder.Eval( Container.DataItem,
"intIdCategorie" )%>'>
<%# DataBinder.Eval(Container.DataItem,"strNom") %>
(<%# DataBinder.Eval(Container.DataItem, "intIdCategorie") %>)
</asp:LinkButton></B><BR>
<asp:Repeater id=Repeater1 runat="server" DataSource='<%#
GetChildRelation(Container.DataItem,"CATEGORIES_RECURSIVE")%>'>
<itemTemplate>
<asp:LinkButton id="Linkbutton1" CommandName='<%#DataBinder.Eval(
Container.DataItem, "strNom" )%>' CommandArgument='<%#DataBinder.Eval(
Container.DataItem, "intIdCategorie" )%>' runat="server">
<%# DataBinder.Eval(Container.DataItem,"strNom") %>
(<%# DataBinder.Eval(Container.DataItem, "intIdCategorie") %>)
</asp:LinkButton><br>
</itemTemplate>
</asp:Repeater>
</ItemTemplate>
</asp:datalist>
I've got a page with a datalist and a nested repeater in it to get
"categories" and "sub categories".
I've got link button in the datalist and in the repeater. The ones in the
datalist work fine assuming it fire itemcommand event on postback. The
problem is that the link button in the nested repeater doesnt raise any
event.
How can i catch the click event of the nested link button?
Thanks a lot.
Here's a piece of code:
<asp:datalist id="CategorieList" runat="server" HorizontalAlign="Center"
Width="90%" RepeatColumns="2"
BorderWidth="1px" GridLines="Horizontal" CellPadding="3"
BackColor="White" BorderStyle="None"
BorderColor="#E7E7FF">
<ItemTemplate>
<B>
<asp:LinkButton id=LinkFonction runat="server"
CommandName='<%#DataBinder.Eval( Container.DataItem, "strNom" )%>'
CommandArgument='<%#DataBinder.Eval( Container.DataItem,
"intIdCategorie" )%>'>
<%# DataBinder.Eval(Container.DataItem,"strNom") %>
(<%# DataBinder.Eval(Container.DataItem, "intIdCategorie") %>)
</asp:LinkButton></B><BR>
<asp:Repeater id=Repeater1 runat="server" DataSource='<%#
GetChildRelation(Container.DataItem,"CATEGORIES_RECURSIVE")%>'>
<itemTemplate>
<asp:LinkButton id="Linkbutton1" CommandName='<%#DataBinder.Eval(
Container.DataItem, "strNom" )%>' CommandArgument='<%#DataBinder.Eval(
Container.DataItem, "intIdCategorie" )%>' runat="server">
<%# DataBinder.Eval(Container.DataItem,"strNom") %>
(<%# DataBinder.Eval(Container.DataItem, "intIdCategorie") %>)
</asp:LinkButton><br>
</itemTemplate>
</asp:Repeater>
</ItemTemplate>
</asp:datalist>