[英]Ajax Modal Popup Extender Mark Up on Child Page
I've been researching for hours a demo of the AJAX Modal Popup Extender markup in a child page. 我已经在子页面中研究了几个小时的AJAX Modal Popup Extender标记演示。 I'm trying to implement an ASP.NET LinkButton on the parent page in a Gridview column to fire the modal (the child page) and keep the UI markup separate.
我正在尝试在Gridview列的父页面上实现ASP.NET LinkButton,以触发模式(子页面)并使UI标记保持独立。
Can someone please provide a code demo of this? 有人可以提供此代码的演示吗?
Put iframe inside panel and set src to your file: 将iframe放入面板中,然后将src设置为您的文件:
<cc1:ModalPopupExtender ID="mp1" runat="server" PopupControlID="PanelX" TargetControlID="YourButtonID"
CancelControlID="btnClose" BackgroundCssClass="Background">
</cc1:ModalPopupExtender>
<asp:Panel ID="Panel1" runat="server" CssClass="modalPopup" align="center" style = "display:none">
<iframe style=" width: 410px; height: 190px;" src="YourChildPage.aspx" runat="server"></iframe>
<br/>
<asp:Button ID="btnClose" runat="server" ClientIDMode="Static" style="display:none"/>
</asp:Panel>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.