Exemplo n.º 1
0
 public void btnSubmit_Click(object sender, EventArgs e)
 {
     if (AdminUtil.CheckLoginCredentials(txtUsername.Text, txtPassword.Text))
     {
         //redirect to the home page
         Response.Redirect("~/", true);
     }
     else
     {
         //show error if invalid login
         this.lblError.Text = "Invalid username/password. <br>";
     }
 }