Click here to Skip to main content
15,886,258 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
HTML
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>
Posted
Updated 5-Jan-17 23:21pm
v2

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900