简体   繁体   中英

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. 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.

Can someone please provide a code demo of this?

Put iframe inside panel and set src to your file:

<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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM