Public Partial Class Login Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load End Sub Protected Sub btnLogin_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnLogin.Click If (((txtUserID.Text.ToUpper() = "USER1") And _ (txtPassword.Text = "User1@123")) Or _ ((txtUserID.Text.ToUpper() = "USER2") And _ (txtPassword.Text = "User2@123")) Or _ ((txtUserID.Text.ToUpper() = "USER3") And _ (txtPassword.Text = "User3@123"))) Then FormsAuthentication.RedirectFromLoginPage _ (txtUserID.Text, False) End If End Sub End Class
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)