?
Solved

loginstatus control not redirecting for logout.  How to fix?

Posted on 2007-10-03
1
Medium Priority
?
1,081 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
0
Comment
Question by:leachj
1 Comment
 
LVL 12

Accepted Solution

by:
CmdoProg2 earned 2000 total points
ID: 20008623
set the LogoutAction to "Redirect"

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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
Integration Management Part 2
Loops Section Overview

571 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