Posted By

housecor on 09/09/10


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Tyster


Custom Validation method signature


 / Published in: C#
 

  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  

You need to login to post a comment.