leachj
asked on
loginstatus control not redirecting for logout. How to fix?
I am using a loginstatus control on an input form page. My default page has a button that directs to a login page where I use login controls. The login control directs to the input form page where the loginstatus control is displayed. I have the logout page url property set to ~/Default.aspx. When I click the loginstatus control, which displays logout, I should be redirected to the default page but I remain in the input form page as if the page does a refresh. I am using ajax on the page, but the loginstatus control is not in an update panel.
<body>
<center>
<form id="InputForm" runat="server" submitdisabledcontrols="fa lse">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:Label ID="Label15" runat="server" Text="Logged in as - "></asp:Label>
<asp:LoginName ID="LoginName1" runat="server" />
<asp:LoginStatus ID="LoginStatus1" runat="server" LogoutPageUrl="~/Default.a spx" />
<div>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<table style="table-layout: fixed; width: 760px; tex....................... .etc.
Anyone have any suggestions?
Thanks,
John
<body>
<center>
<form id="InputForm" runat="server" submitdisabledcontrols="fa
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:Label ID="Label15" runat="server" Text="Logged in as - "></asp:Label>
<asp:LoginName ID="LoginName1" runat="server" />
<asp:LoginStatus ID="LoginStatus1" runat="server" LogoutPageUrl="~/Default.a
<div>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<table style="table-layout: fixed; width: 760px; tex.......................
Anyone have any suggestions?
Thanks,
John
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.