We help IT Professionals succeed at work.

loginstatus control not redirecting for logout.  How to fix?

leachj asked
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?

Watch Question

Unlock this solution and get a sample of our free trial.
(No credit card required)
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.


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.