Custom Validation method signature


/ Published in: C#
Save to your folder(s)



Copy this code and paste it in your HTML
  1. protected void AuthenticateUser(object source, ServerValidateEventArgs args)
  2. {
  3. Authentication auth = new Authentication();
  4. args.IsValid = auth.AuthenticateUser(txtUsername.Text, txtPassword.Text);
  5. if (args.IsValid) Response.Redirect("~/Default.aspx");
  6. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.