modelpopupextender问题 [英] modelpopupextender problem
本文介绍了modelpopupextender问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我单击显示"对话框按钮时,不会显示modelpop..
但是当我删除面板显示样式:无时,将显示modelpop.
我的流行音乐如何打开,请帮助我.
when i click on Show dialog button the modelpop is not displayed..
but when i remove panel display style:none the modelpop is appeared.
how my pop is open plz help me..
<%@ Page Language="C#" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="head" runat="server">
<title>Delete Confirm Example</title>
<link href="StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form runat="server">
<asp:ScriptManager runat="server" />
<div>
<p style="background-color:AliceBlue; width:95%;">
Example of using a ModalPopupExtender with multiple delete buttons<br />
</p>
<br />
<asp:Button ID="btnShow" runat="server" Text="Show Dialog" />
<ajaxToolKit:ModalPopupExtender
BehaviorID="mdlPopup" runat="server" TargetControlID="btnShow"
PopupControlID="pnlPopup" OkControlID="btnYes" BackgroundCssClass="modalBackground" />
<asp:Panel ID="pnlPopup" runat="server" CssClass="confirm-dialog" style="display:none;">
<div>
<h2>Are you sure you want to delete this item?</h2>
<div>
<asp:Button ID="btnYes" runat="server" Text="Yes" />
<asp:Button ID="btnNo" runat="server" Text="No"
OnClientClick="$find('mdlPopup').hide(); return false;" />
<asp:LinkButton runat="server" CssClass="close"
OnClientClick="$find('mdlPopup').hide(); return false;" />
</div>
</div>
</asp:Panel>
</div>
</form>
</body>
</html>
推荐答案
find('mdlPopup').hide(); return false;" / < asp:LinkButton 运行 =" CssClass 关闭" OnClientClick ="
find('mdlPopup').hide(); return false;" /> <asp:LinkButton runat="server" CssClass="close" OnClientClick="
find('mdlPopup').hide(); return false;" / < /div > < /div > < /asp:Panel > < /div > < /form > < /body > < /html >
find('mdlPopup').hide(); return false;" /> </div> </div> </asp:Panel> </div> </form> </body> </html>
嗨 巴隆吉,
请使用此代码,它可以正常工作.
这是模式弹出按钮代码(您可以在其中打开弹出窗口)
Hi Balongi,
Please use this code it is working fine.
This is modal popup button code (where you can open the popup)
<asp:HyperLink runat="server" ID="hylSelectInstruction" NavigateUrl="javascript:void(0)"
Text="Select Standard Instruction"></asp:HyperLink>
这是模式弹出式代码
This is modal popup code
<asp:ModalPopupExtender ID="ModalPopupExtender1" BehaviorID="bInstruction" runat="server"
TargetControlID="hylSelectInstruction" PopupControlID="pnlInstruction" BackgroundCssClass="popupwrapper_transparentbg"
DropShadow="false" PopupDragHandleControlID="pnlInstructionDragHandle" OkControlID="lbtnInstructionCancel"
RepositionMode="RepositionOnWindowScroll" />
<asp:Panel runat="server" ID="Panel1" Style="display: none; width: 600px;
height: 300px;">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td >
<%--Yor modal popup form controls comes here.. --%>
</td>
</tr>
</table>
</asp:Panel>
谢谢,
Imdadhusen
Thanks,
Imdadhusen
这篇关于modelpopupextender问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文