Beispiel #1
0
        protected void CheckFirstName(object source, CSAAWeb.WebControls.ValidatorEventArgs e)
        {
            e.IsValid = !regCheckName.IsMatch(txtFirstName.Text);
            if (!e.IsValid)
            {
                vldFirstName.MarkInvalid();
            }
            Validator vldFirst = (Validator)source;

            vldFirst.ErrorMessage = " Member First Name must be alphanumeric";
        }
 /// <summary>
 /// Fires the ServerValidate Event(s).  Deligates can be added by using
 /// this method name as an HTML attribute in the server control definition tag
 /// </summary>
 protected virtual void OnServerValidate(ValidatorEventArgs args)
 {
     ServerValidate(this, args);
 }