Next


Login Control

 This control offers pre-defined design the frequently implemented operation called “Login”, with username and password.
 It supports “AutoFormat” styles. In the code, you can access the entered “UserName” and “Password” with the respective properties.

Logincontrol

Default.aspx.cs
    protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
    {
        if (Login1.UserName == "system" && Login1.Password == "developer")
            Response.Redirect("success.aspx");
    }