Login Control Problem

Discussion in 'ASP.NET 2.0' started by aj, Jul 21, 2007.

  1. aj

    aj

    Hi,

    I wanted to use membership, and followed the instructions on: http://kb.discountasp.net/article.aspx?id=10413

    Now that its done, I went ahead to test a simple page with a LoginView control which includes the Login control for the Anonymous template, and a simple text "Welcome" for the LoggedInTemplate.

    All this is on the Default.aspx page, and the Login control DestinationPageURL is set to Default.aspx

    The Problem is, when I run the page and enter a valid username and password, doesn't show me the "Welcome" text, instead, it shows me the Login control (without any errors). However, if I type in a wrong username/password, it does give me an error "Your login attempt was not successful. Please try again."

    Any idea what I might be missing? I haven't added anything extra to the web.config file except for the details instructed on the kb article above.

    Thanks,

    AJ
     
  2. aj

    aj

    Hi

    Found it == I had authentication mode set to Windows on the Web.config file. Setting it to Forms solved the problem.

    Thank you anyways

    AJ
     

Share This Page