Problem with Login control of ASP.NET

后端 未结 13 1081
春和景丽
春和景丽 2021-01-03 00:38

I set up a website to use SqlMembershipProvider as written on this page.

I followed every step. I have the database, I modified the Web.config to use this provider,

13条回答
  •  醉梦人生
    2021-01-03 01:22

    RE: The Accepted Answer

    I do not like the hack given.

    I have a site that uses a login form called "login.aspx" and all works fine. I think we should actually find the answer rather than hack. Since all the [presumably] tested sites work. Do you not think we should actually use StackOverflow to find the ACTUAL problem? (making it much more useful than anywhere else?)

    In the LoginCtl_Authenticate event are you setting the EventArgs.Authenticated property to true?

    e.g.

    protected void LoginCtl_Authenticate(object sender, AuthenticateEventArgs e)
    {
       // Check the Credentials against DB
       bool authed = DAL.Authenticate(user, pass);
       e.Authenticated = authed;
    }
    

提交回复
热议问题