asp:login reloads page, asp:CreateUserWizard does not.

Last post 05-16-2008 2:25 AM by XiaoYong Dai – MSFT. 1 replies.

Sort Posts:

  • asp:login reloads page, asp:CreateUserWizard does not.

    05-14-2008, 4:28 PM

    Is there any way to stop asp:login control from reloading the whole page? 

     

    I have a few controls in an AJAX UpdatePanel including a CreateUserWizard and a Login control. The create user wizard does not reload the whole page but loggs the user in as expected. The asp:login control reloads the page (and thereby losing all the postback data on the page). Is there a way to get it to not reload the page like this but to only log the user in.

     Modifying the OnLoggedIn event function does not help. It gets run then the page goes and gets reloaded.

     

    Any help much appreciated.

     

    Conor


  • Re: asp:login reloads page, asp:CreateUserWizard does not.

    05-16-2008, 2:25 AM
    Answer

    Hi

    Have you tried to wrap the Login control in LoginView control?

        <asp:LoginView ID="LoginView1" runat="server">
            <LoggedInTemplate>
                Hello
            </LoggedInTemplate>
            <AnonymousTemplate>
                <asp:Login ID="Login1" runat="server">
                </asp:Login>
            </AnonymousTemplate>
        </asp:LoginView>

    If the above code hasn't solved your problem, please also post in AJAX forum.

    Best Regards
    XiaoYong Dai
    Microsoft Online Community Support

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Page 1 of 1 (2 items)