无法在iframe中显示网页作为弹出窗口 [英] unable to display web page inside iframe as a popup
本文介绍了无法在iframe中显示网页作为弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在iframe内的弹出窗口中显示我的网页。我无法弄清楚问题是什么不起作用。我使用以下代码。
I want to display my web page in a popup inside an iframe. I cant figure out what the problem is its not working. I am using the following code.
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div>
<asp:Button ID="btnNewParty" runat="server" Text="New Party" />
<cc1:ModalPopupExtender ID="m1" runat="server" TargetControlID="btnNewParty" BackgroundCssClass="ModalPopupBG" Drag="true" CancelControlID="btnCancel" DropShadow="true" OkControlID="btnOkay" PopupDragHandleControlID="PopupHeader" PopupControlID="Panel1">
<asp:Panel ID="Panel1" Style="display: none;" runat="server" ScrollBars="Auto">
<iframe style="width: 350px; height: 300px;" id="ifrm1" runat="server" src="MPMST.aspx" frameborder="no"
scrolling="yes"></iframe>
<br />
<asp:Button ID="Button2" runat="server" Text="Close" />
</div>
Most链接给出了相同的代码。我做的完全相同,但仍然无法正常工作。
m也没有使用更新面板。
Newparty.aspx是一个简单的网页没有母版页的网页。我错过了什么?
i使用 Style =display:block;
也适用于panel.But弹出窗口本身并没有出现。
帮助我。
Most of the links have given the same code.I m doing exactly the same but still its not working.
m not using update panel also.
Newparty.aspx is a simple web page without master page.Am i missing something?
i used Style="display: block;"
also for panel.But the popup itself doesnt appear.
Help me.
推荐答案
如何将div作为弹出窗口打开。请粘贴该代码。如果您的div打开弹出窗口,那么只需将iframe保留在div中。要创建iframe作为弹出窗口,您可以按照以下链接http://www.codeproject.com/Tips/646469/Web-Modal-Window-Using-IFrame
How a div is being open as a pop up. please paste that code. If your div opens the pop up then just keep the iframe inside the div. To create a iframe as a pop up you can follow the below link http://www.codeproject.com/Tips/646469/Web-Modal-Window-Using-IFrame
这篇关于无法在iframe中显示网页作为弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文