Localizing ASP.NET MVC Validation
This is the fourth post in my series on ASP.NET MVC 2 and its new features. ASP.NET MVC 2 Beta Released (Release Announcement) Html.RenderAction and Html.Action ASP.NET MVC 2 Custom Validation Localizing ASP.NET MVC Validation In my recent post on custom validation with ASP.NET MVC 2 , several people asked about how to localize validation messages. They didn’t want their error messages hard-coded as an attribute value. It turns out that it’s pretty easy to do this. Localizing error messages is not specific to ASP.NET MVC, but is a feature of Data Annotations and ASP.NET. And everything I cover here works for ASP.NET MVC 1.0 (except for the part about client validation which is new to ASP.NET MVC 2). I covered this feature a back in March at
Read More...
Read the complete post at http://haacked.com/archive/2009/12/07/localizing-aspnetmvc-validation.aspx