Friday, 15 March 2013

asp.net - How to fire ItemCommand argument child repeater in nested repeater control in c#.net -



asp.net - How to fire ItemCommand argument child repeater in nested repeater control in c#.net -

here aspx page code nested repeater..

<asp:repeater id="repaccordian" runat="server" onitemdatabound="repaccordian_itemdatabound" onitemcommand="repaccordian_itemcommand"> <itemtemplate> <%#eval("topicname")%> <asp:label id="lbltopicid" runat="server" visible="false" text='<%#eval("topicid")%>' </asp:label> <div> <asp:repeater id="repsubtopic" runat="server"><itemtemplate> <%#eval("subtopicname")%> <a href='' class='click'> <asp:label id="lblview" commandname="view" commandargument='<%# eval("subtopicid") %>' runat="server" text="view" /></a> </itemtemplate> </asp:repeater> </div> </itemtemplate> </asp:repeater>

i need fire itemcommand argument when click on view in kid repeater(repsubtopic).. pls give me suggestions solve problem.

as @tim suggested

<asp:repeater id="repsubtopic" runat="server" onitemcommand="repsubtopic_itemcommand">

and define repsubtopic_itemcommand in code behind.

c# asp.net repeater asprepeater nested-repeater

No comments:

Post a Comment