簡體   English   中英

錨標簽彈出窗口在更新面板內不起作用

[英]anchor tag popup not working inside the update panel

當我在“更新”面板中使用href彈出窗口時,它不會觸發單擊事件,但在更新面板之外,它可以正常工作。 我正在使用jquery彈出一個彈出窗口。 在這看到我的代碼

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>

   <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>

   <asp:Panel ID="personal_panel" runat="server">
     <table>
 <tr class="reason">
   <td>
  <asp:TextBox ID="txt_reasons" runat="server" Visible="False"></asp:TextBox>
  </td>
  </tr>
   <tr>
  <td>
    <asp:ImageButton class="back-img" ID="imgbtn_back" runat="server" ImageUrl="~/images/back-back.png" OnClick="imgbtn_back_Click" onClientclick="submit_hidden()"  />
  </td>
 </tr>
</table>
  <p id="Div1"  style="margin-top: -120px;height: 100px;">
 <a id="popupsubmit" class="trigger_popup_fricc1">Submit</a></p>
                    </asp:Panel>

</ContentTemplate>

 </asp:UpdatePanel>  

這里是我彈出的Jquery代碼

                       <script>
            $(window).load(function () {
                $(".trigger_popup_fricc1").click(function () {
                    $('.hover_bkgr_fricc1').show();
                });
                $('.hover_bkgr_fricc1').click(function () {
                    $('.hover_bkgr_fricc1').hide();
                });
                $('.popupCloseButton').click(function () {
                    $('.hover_bkgr_fricc1').hide();
                });
               });

</script>

嘗試使用回發觸發器。 請參閱此鏈接。

按鈕單擊不在更新面板內工作

我希望它有用。 😊

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM