We help IT Professionals succeed at work.

loginstatus control not redirecting for logout.  How to fix?

leachj
leachj asked
on
1,108 Views
Last Modified: 2008-01-09
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
Comment
Watch Question

Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.