Beispiel #1
0
        //
        // The custom validation method.
        //


        public void vr_CustomValidationMethod(object sender,
                                              Noogen.Validation.CustomValidationEventArgs e)
        {
            e.IsValid =
                e.Value.ToString().Equals("2011年8月22日");
            e.ErrorMessage = "%ControlName% is not today";
        }
Beispiel #2
0
 private void vr_CustomValidationMethod(object sender, Noogen.Validation.CustomValidationEventArgs e)
 {
     e.IsValid      = e.Value.ToString().Equals("abc") || e.Value.ToString().Equals("123");
     e.ErrorMessage = "%ControlName% is not in ('abc', '123').";
 }