asp:Login - did NOT fail, but still stays unchanged

Discussion in 'ASP.NET 2.0' started by sascha, Jun 28, 2010.

  1. Hi All,

    I have a simple <asp:LoginView> control on my Login.aspx page (see below) and web.config with membership configured (see further below).

    The issue I'm struggling with is that LoginView control stays unchaged after apparently successful login. (i.e. FailureText is blank and all fields are clear).

    What am I missing here?

    Anyone, please advise!
    Regards, Sascha.



    Login.aspx
    .............
    <asp:LoginView ID="LoginView1" runat="server">
    <AnonymousTemplate>
    <asp:Login ID="Login1" runat="server" DestinationPageUrl="~/Default.aspx" FailureText="failed" VisibleWhenLoggedIn="false" >
    </asp:Login>​
    </AnonymousTemplate>
    <LoggedInTemplate>
    welcome back,
    <asp:LoginName runat="server" id="loginname1"></asp:LoginName>
    <asp:LoginStatus runat="server" ID="LoginStatus1" />​
    </LoggedInTemplate>​
    </asp:LoginView>
    .............




    web.config
    ..........

    <connectionStrings>
    <add name="AXV_SqlConnection"
    connectionString="Data Source=some_server;Initial Catalog=aspnetdb;Integrated Security=SSPI;" />​
    </connectionStrings>


    <authentication mode="Forms">
    <forms name="MyApplicationCookie"
    loginUrl="Login.aspx"
    path="/FormsAuth"
    cookieless="UseCookies" />​
    </authentication>

    <authorization>
    <deny users="?" />
    <allow users="*" />​
    </authorization>

    <membership
    defaultProvider="AXV_SqlProvider"
    userIsOnlineTimeWindow="15">
    <providers>
    <clear />
    <add
    name="AXV_SqlProvider"
    type="System.Web.Security.SqlMembershipProvider"
    connectionStringName="AXV_SqlConnection"
    applicationName="MyApplication"
    enablePasswordRetrieval="false"
    enablePasswordReset="true"
    requiresQuestionAndAnswer="true"
    requiresUniqueEmail="true"
    passwordFormat="Clear" />​
    </providers>​
    </membership>
    ..........
     

Share This Page