Hi,
You don't have to override anything just write the error message you want on
the validation attribute, for example:
[ValidateNonEmpty("You have to write a nice name in this field, please...")]
public virtual string Name { get; set; }
Ricardo Lopes.
2009/2/25 Alessandro C. <[email protected]>
>
> What is the correct use of the override of the IsValid method of the
> ActiveErrorValidationBase class?
>
> The IsValid method returns false if the validation fails but how can I
> set the description of the error in the ValidationErrorMessages array?
>
> Thanks in advance,
> Alessandro
> >
>
--
Ricardo Lopes
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---