Modalpopupextender.show()没有开火 [英] Modalpopupextender.show() not firing

查看:57
本文介绍了Modalpopupextender.show()没有开火的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,

我正在研究asp:ModalPopupExtender。

单击图像按钮时弹出窗口应该打开。

但是弹出窗口没有打开。



我尝试过:



< asp:UpdatePanel ID =UpdatePanel3runat =server> 
< ContentTemplate>
<% - < asp:DropDownList ID =ddlemdtyperunat =serverStyle =margin-left:29px; width:188px;
class =inputddlAutoPostBack =trueOnSelectedIndexChanged =ddlemdtype_SelectedIndexChanged
TabIndex =17>
< / asp:DropDownList> - %>
< span class =mandatoryfieldstyle =margin:5px 0 0 0; position:absolute;> *< / span>
<% - < asp:ImageButton ID =ImageButtonEMDTypeImageUrl =〜/ images / add.pngrunat =server
Style =margin:7px 0 0 8px; position :绝对的; AlternateText =Add NewOnClick =imgbtnaddnew_Click/> - %>
< div>
< asp:LinkBut​​ton ID =LinkBut​​ton3ImageUrl =〜/ images / cross.pngrunat =serverStyle =display:none>
< / asp:LinkBut​​ton>
< asp:ModalPopupExtender ID =mdlsamplerunat =serverTargetControlID =LinkBut​​ton3
PopupControlID =_ pnlEmdType>
< / asp:ModalPopupExtender>
< asp:Panel ID =_ pnlEmdTyperunat =serverScrollBars =AutoStyle =margin-right:-10px;
display:none;>
< div id =DivLeadTypestyle =float:right;>
< asp:ImageButton ID =ImageButton2runat =serverImageAlign =RightImageUrl =〜/ images / popup_close_button.png
Width =28pxHeight =28px/ >
< br />
< div style =background-color:#CCCCCC; margin-right:12px; border:solid 6px #ffffff;>
< div style =background-color:#CCCCCC; border:solid 4px #ffffff;>
< table border =0width =350align =centercellpadding =0cellspacing =0>
< tr>
< td class =popuptitlealign =center>

< asp:Label ID =lblpopmastertitlerunat =serverText =EMD Type>< / asp:Label>
< / td>
< / tr>
< tr>
< td align =centerclass =popupcontent>
< table>
< tr>
< td>
< asp:Label ID =lblpopupRownamerunat =serverText =EMD Type>< / asp:Label>
< / td>
< td>
< asp:TextBox ID =txtpopEmdTyperunat =serverclass =inputMaxLength =500>< / asp:TextBox>
< span class =mandatoryfield> *< / span>
< / td>
< / tr>
< / table>
< / td>
< / tr>
< tr>
< td class =popupfootercolspan =2>
< asp:Button ID =btnpopupSaverunat =serverText =SaveOnClick =btnpopupSave_OnClick
TabIndex =35OnClientClick =return CheckValidation(); />
< asp:Button ID =btnpopupAppCloserunat =serverText =CancelTabIndex =35/> 
< / td>
< / tr>
< / table>
< / div>
< / div>
< / div>
< / asp:Panel>
< / div>
< / ContentTemplate>

<触发器>
< asp:PostBackTrigger ControlID =ddlLeadStatus/>
< /触发器>
< / asp:UpdatePanel>

解决方案

查看此链接。



https://www.c-sharpcorner.com/UploadFile/cd7c2e/creating-model-popup-in-Asp-Net-application-by-using-ajax/ [ ^

HI,
I am working on asp:ModalPopupExtender.
on clicking an image button a pop-up should open.
But pop-up is not opening.

What I have tried:

<asp:UpdatePanel ID="UpdatePanel3" runat="server">
                                                                <ContentTemplate>
                                                                   <%-- <asp:DropDownList ID="ddlemdtype" runat="server" Style="margin-left: 29px; width: 188px;"
                                                                        class="inputddl" AutoPostBack="true" OnSelectedIndexChanged="ddlemdtype_SelectedIndexChanged"
                                                                        TabIndex="17">
                                                                    </asp:DropDownList>--%>
                                                                    <span class="mandatoryfield" style="margin: 5px 0 0 0; position: absolute;">*</span>
                                                                    <%--<asp:ImageButton ID="ImageButtonEMDType" ImageUrl="~/images/add.png" runat="server"
                                                                        Style="margin: 7px 0 0 8px; position: absolute;" AlternateText="Add New" OnClick="imgbtnaddnew_Click" />--%>
                                                                    <div>
                                                                        <asp:LinkButton ID="LinkButton3" ImageUrl="~/images/cross.png" runat="server" Style="display: none">
                                                                        </asp:LinkButton>
                                                                        <asp:ModalPopupExtender ID="mdlsample" runat="server" TargetControlID="LinkButton3"
                                                                            PopupControlID="_pnlEmdType">
                                                                        </asp:ModalPopupExtender>
                                                                        <asp:Panel ID="_pnlEmdType" runat="server" ScrollBars="Auto" Style="margin-right: -10px;
                                                                            display: none;">
                                                                            <div id="DivLeadType" style="float: right;">
                                                                                <asp:ImageButton ID="ImageButton2" runat="server" ImageAlign="Right" ImageUrl="~/images/popup_close_button.png"
                                                                                    Width="28px" Height="28px" />
                                                                                <br />
                                                                                <div style="background-color: #CCCCCC; margin-right: 12px; border: solid 6px #ffffff;">
                                                                                    <div style="background-color: #CCCCCC; border: solid 4px #ffffff;">
                                                                                        <table border="0" width="350" align="center" cellpadding="0" cellspacing="0">
                                                                                            <tr>
                                                                                                <td class="popuptitle" align="center">
                                                                                                    
                                                                                                        <asp:Label ID="lblpopmastertitle" runat="server" Text="EMD Type"></asp:Label>
                                                                                                </td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td align="center" class="popupcontent">
                                                                                                    <table>
                                                                                                        <tr>
                                                                                                            <td>
                                                                                                                <asp:Label ID="lblpopupRowname" runat="server" Text="EMD Type"></asp:Label>
                                                                                                            </td>
                                                                                                            <td>
                                                                                                                <asp:TextBox ID="txtpopEmdType" runat="server" class="input" MaxLength="500"></asp:TextBox>
                                                                                                                <span class="mandatoryfield">*</span>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                    </table>
                                                                                                </td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td class="popupfooter" colspan="2">
                                                                                                    <asp:Button ID="btnpopupSave" runat="server" Text="Save" OnClick="btnpopupSave_OnClick"
                                                                                                        TabIndex="35" OnClientClick="return CheckValidation();" />
                                                                                                    <asp:Button ID="btnpopupAppClose" runat="server" Text="Cancel" TabIndex="35" /> 
                                                                                                </td>
                                                                                            </tr>
                                                                                        </table>
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                        </asp:Panel>
                                                                    </div>
                                                                </ContentTemplate>
                                                               
                                                                <Triggers>
                                                                    <asp:PostBackTrigger ControlID="ddlLeadStatus" />
                                                                </Triggers>
                                                            </asp:UpdatePanel>

解决方案

Check this link .

https://www.c-sharpcorner.com/UploadFile/cd7c2e/creating-model-popup-in-Asp-Net-application-by-using-ajax/[^]


这篇关于Modalpopupextender.show()没有开火的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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