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
I had placed the Logout button (i.e ImgbtnLogOut) in TopMenu.aspx which is referenced to iframe-1
onclcick of logout button, i'm trying to kill the session and and then trying to redirect to the login.aspx page.
issue here is as i had placed the Logout Button in TopMenu.aspx, the redirection happening only in Iframe-1 but not considering the entire screen. May i know that how can i resolve such a probe..?
What I have tried:
protected void ImgbtnLogOut_Click(object sender, ImageClickEventArgs e)
{
Session.RemoveAll();
Session.Abandon();
FormsAuthentication.SignOut();
FormsAuthentication.RedirectToLoginPage();
}
I'm Using Forms Authentication
===========================================================
WEB.Config
===========================================================
<authentication mode="Forms">
<forms loginUrl="Login.aspx" enableCrossAppRedirects="false">
</forms>
</authentication>
============================================================
Here is the master page Source Code
============================================================
<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"> <%----%>
</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"> <%----%>
</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><%----%>
<div id="warning" style="display: none">
</div>
</div>
</form>
</body>