Search code examples
asp.netvalidation.net-4.0dynamic-data

Validation error language in asp.NET dynamic data WEB-site


I need to change language of validation error to another language. Validation logic must not be changed.

I just want to translate The field f5080eb8_0a83_4b89_b339_233528441711 must be a valid integer. into another language. For example from English into Italian.

I search in Visual Studio(Entire Solution) for this texts

  1. must be a valid integer
  2. The field

result=0. So, what is the best way to translate validation error text into another language?

Some ideas, thanks!


Solution

  • You typically do all translation activities in .NET with the Resources system: http://msdn.microsoft.com/en-us/library/ms227427.aspx