views:

26

answers:

1

I would like to replace validation message for all model properties that have [Required] attribute from the default "The XY field is required." to "*". I want to do that site wide in one place without having to add a custom message to Required attributes or passing additional parameter to ValidationMessageFor() Html helper.

Any ideas?

A: 

See the answer to my question here :

http://stackoverflow.com/questions/3541107/localizing-error-messages-in-asp-net-mvc-2-default-validation-attributes

Manaf Abu.Rous
very nice, thanks
mare