iframe中的网址问题 [英] URL issue in iframes
本文介绍了iframe中的网址问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Im using 3 Iframes in the master page.
iframe-1 referenced to TopMenu.aspx
iframe-2 referenced to WelcomePage.aspx
iframe-3 referenced to BottomMenu.aspx
ifram-1 and iframe-3 are constant here. Im trying to open the aspx web forms
in Iframe-2 (i.e. in middle frame).
But though the redirection is happening, URL is not updating in the address bar as i'm using the iframe.
How can i resolve it?
我的尝试:
What I have tried:
<body class="size-960">
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<div style="text-align: center">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div id="topframe">
<input id="UserPassword" runat="server" type="hidden" />
<iframe height="175px" width="1000px" scrolling="no" id="TopFrame" name="TopFrame"
frameborder="0" src="TopMenu.aspx"> <%--85px--%>
</iframe>
</div>
</ContentTemplate>
</asp:UpdatePanel>
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<center>
<iframe height="480px" width="1000px" id="MainFrame" name="MainFrame"
frameborder="0" src="AccountDetails.aspx"> <%--580px--%>
</iframe>
</center>
</ContentTemplate>
</asp:UpdatePanel>
</asp:ContentPlaceHolder>
<asp:UpdatePanel ID="UpdatePanel3" runat="server">
<ContentTemplate>
<center>
<iframe height="30px" width="1000px" scrolling="no" id="BottomFrame" name="BottomFrame"
frameborder="0" src="BottomMenu.aspx">
</iframe>
</center>
</ContentTemplate>
</asp:UpdatePanel><%--85px--%>
<div id="warning" style="display: none">
</div>
</div>
</form>
</body>
推荐答案
javascript - 当点击Iframe中的链接时,使用历史pushState更改父窗口的URL - Stack Overflow [ ^ ]
这篇关于iframe中的网址问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文