Link to home
Start Free TrialLog in
Avatar of leachj
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="false">
        &nbsp;<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" />
        &nbsp;&nbsp;
        <asp:LoginStatus ID="LoginStatus1" runat="server" LogoutPageUrl="~/Default.aspx" />
    <div>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
       
        <table style="table-layout: fixed; width: 760px; tex........................etc.

Anyone have any suggestions?

Thanks,
John
ASKER CERTIFIED SOLUTION
Avatar of CmdoProg2
CmdoProg2
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial