Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Karl Walker 10 posts 30 karma points
    Sep 08, 2010 @ 17:47
    Karl Walker
    0

    Membership Controls

    I'm having a problem with the ASP.Net Membership control LoginView on my homepage.

    I've noticed when I login, all child pages it shows I'm logged in.  If I go to my homepage however if shows I'm not logged in, even though I am by subsequently returning to my child pages.

     

    However if I fully qualify the URL with the home URL, it works.

    For SEO purposes the home link needs to be...

     

    http://<domain>/

     

    however the full qualification is...

     

    http://<domain>/home.aspx

     

    Here is my control markup...

     

    Anyone else having this problem.  Currently I'm not sure if its a problem with .NET control or the fact the URL re-writer in Umbraco is causing the problem.  Any ideas?

     

    <asp:LoginView ID="UmbracoLoginView" runat="server" EnableViewState="true">

            <AnonymousTemplate>

                <asp:Login ID="Login1" runat="server"

                    DisplayRememberMe="False"

                    LoginButtonType="Link"

                    TitleText=""

                    LoginButtonText="Go"

                    UsernameLabelText="Username"

                    PasswordLabelText="Password"

                    PasswordRequiredErrorMessage="Password required."

                    UserNameRequiredErrorMessage="Username required."

                    CssClass="btnOrange"

                    FailureTextStyle-CssClass="loginError"

                    FailureTextStyle-ForeColor = "" />

            </AnonymousTemplate>

            <LoggedInTemplate>

                <%= this.Welcome %>

                <asp:LoginName id="LoginName1" runat="server" CssClass="loggedName" />

                <asp:LoginStatus ID="LoginStatus1" runat="server"

                                 LoginText="Login"

                                 LogoutText="Logout" CssClass="loggedStatus" />

            </LoggedInTemplate>

        </asp:LoginView>

Please Sign in or register to post replies

Write your reply to:

Draft