单击"Evevt在模型弹出控件中不起作用" [英] Click Evevt not working in Model popup Control

查看:70
本文介绍了单击"Evevt在模型弹出控件中不起作用"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hai每个人,

我在aspx页面的嵌套更新面板中弹出一个模型.两个更新面板的更新模式是有条件的.
这是我的代码:

Hai Every one,

I have a model pop up in nested update panel of my aspx page.Update mode of both update panels is conditional.
Here is my code:

<asp:UpdatePanel ID="upParent" runat="server" UpdateMode="Conditional">
    <Triggers>

    </Triggers>
        <ContentTemplate>
<asp:UpdatePanel ID="upCustomerDetails" runat="server" UpdateMode="Conditional">
                                   <Triggers>
                                   <asp:PostBackTrigger ControlID="ibCustomerPhoto" />
                                   </Triggers>
                                       <ContentTemplate>
<table width="100%" border="0" cellspacing="4" cellpadding="0">
                                                                                                                                                          <tr>
                                                                                                                                                              <td>
                                                                                                                                                                  <asp:ImageButton ID="ibCustomerPhoto" runat="server" Height="100px" Width="100px" OnClick="ibCustomerPhoto_Click"

                                                                                                                                                                      ImageUrl="~/images/NoPicture.gif" ToolTip="Click here to add photo" CssClass="handcursor"

                                                                                                                                                                       />
                                                                                                                                                                     <asp:Button ID="Dummy" runat="server" style="display:none" />
                                                                                                                                                                      <ajax:ModalPopupExtender ID="modalPopUp1" runat="server" TargetControlID="Dummy"

                                                                                                                                                                          PopupDragHandleControlID="pnlDragDetails" CancelControlID="lbDetailsClose" PopupControlID="pnlDetails"

                                                                                                                                                                          BackgroundCssClass="modalBackground" DropShadow="false"   />
                                                                                                                                                              </td>
                                                                                                                                                          </tr>
                                                                                                                                                      </table>


</ContentTemplate>
                                   </asp:UpdatePanel>


<asp:Panel ID="pnlDetails" runat="server" CssClass="modalPopup" Style="display: none;
               height: 105px; width: 400px;">
               <table width="100%" border="0" cellspacing="0" cellpadding="0" class="page_border">
           <tr class="page_title">
             <td>
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="5">
                   <tr>
                      <td>
                         <asp:Panel ID="pnlDragDetails" runat="server">
                            <font size="+1">
                                <table class="page_title" width="100%">
                                   <tr>
                                      <td align="center" style="width: 90%">
                                        <asp:Label ID="label2" runat="server" Text='Customer Photo'></asp:Label>
                                          </td>
                                           <td align="right" style="width: 10%">
                                                <asp:LinkButton ID="lbDetailsClose" runat="server" Text="Close" CssClass="linkscolor"></asp:LinkButton>
                                            </td>
                                        </tr>
                                    </table>
                                  </font>
                              </asp:Panel>
                            </td>
                          </tr>
                       </table>
                     </td>
                   </tr>
                 <tr>
                  <td>
                   <table border="0" cellpadding="4" cellspacing="4">
                     <tr>
                       <td align="left" class="ntxt" colspan="2">
                         Upload Photo:
                        </td>
                      </tr>
                     <tr>
                       <td class="ntxt" align="left" width="85%">
                         <asp:FileUpload ID="uxPhotoIdentity" runat="server" ToolTip="Please browse the photo" />
                       </td>
                       <td align="left" class="ntxt">
                       <asp:ImageButton ID="btnCloseDetails"  runat="server" ImageUrl="~/images/btn_save_old.gif"

                          OnClick="btnCloseDetails_Click" />
                       </td>
                      </tr>
                    </table>
               </td>
            </tr>
       </table>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>


当我单击图像按钮时,弹出按钮不会弹出.
在CS页面中,我编写了图像按钮单击事件的代码


When i click the image button pop up not getting.
In cs page i write the code for image button click event

Modelpopup1.show();


但是单击事件不会触发.


but click event is not firing.

推荐答案

,您需要将面板"pnlDetails"面板放在弹出控件"inmodalPopUp1"下方的同一更新面板中.可能有帮助!
you need to put panel ''pnlDetails'' just below of popup control ''inmodalPopUp1'' in same update panel..May be help!


这篇关于单击"Evevt在模型弹出控件中不起作用"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆