Author: Shaitan00 | Posted on: 8/9/2008 4:10:59 PM | Views : 301

I'm using the <asp:login> control to perform user authentication on my web page, however I am not using the ASP membership stuff, instead I opted to customize the login behavior seeing as I use a Database for authentication purposes

[Code]
[Default.aspx]
<asp:login id="Login1" OnAuthenticate="OnAuthenticate" runat="server">
...
</asp:login>


[Default.aspx.cs]
    // Login Authentication Event //
    protected void OnAuthenticate(object sender, AuthenticateEventArgs e)
    {
        bool Authenticated = false;
        Authenticated = AuthenticationMethod(Login1.UserName, Login1.Password);

        e.Authenticated = Authenticated;
    }
[/Code]
Where "AuthenticationMethod" is ...

Go to the complete details ...