loginstatus control not redirecting for logout.  How to fix?

Posted on 2007-10-03
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.

    <form id="InputForm" runat="server" submitdisabledcontrols="false">
        &nbsp;<asp:ScriptManager ID="ScriptManager1" runat="server">
        <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.aspx" />
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <table style="table-layout: fixed; width: 760px; tex........................etc.

Anyone have any suggestions?

Question by:leachj
    1 Comment
    LVL 12

    Accepted Solution

    set the LogoutAction to "Redirect"

    <asp:LoginStatus ID="LoginStatus1" runat="server" LogoutAction="Redirect" LogoutPageUrl="~/Default.aspx" />

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on could not pull conte…
    Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now