1
我有一個使用嵌套的子元素在updatepanel中的asp.net linkbutton的問題。asp.net linkbutton不會在updatepanel中觸發嵌套的孩子
當我使用的UpdatePanel一個LinkButton,onclick事件是由Ajax請求正常工作:
<asp:updatepanel runat="server" childrenastriggers="true">
<contenttemplate>
<asp:repeater runat="server" id="myrpt">
<itemtemplate>
<asp:linkbutton runat="server">click me</asp:linkbutton>
</itemtemplate>
</asp:repeater>
</contenttemplate>
</asp:updatepanel>
所以,當我裏面插入的LinkButton一個html的孩子,然後Ajax請求不點火,做它作爲一個回傳請求:
<asp:updatepanel runat="server" childrenastriggers="true">
<contenttemplate>
<asp:repeater runat="server" id="myrpt">
<itemtemplate>
<asp:linkbutton runat="server"><i class="fa fa-times"></i></asp:linkbutton>
</itemtemplate>
</asp:repeater>
</contenttemplate>
</asp:updatepanel>
任何機構可以幫助我解決這個問題在updatepanel?