Globalization - resource files

Topics: Validation Application Block
Sep 4, 2009 at 12:37 AM

I just wanted to clarify if what I am doing is correct. I am using the validation block and I need language specific error messages. I added 

<font size="2">

MessageTemplateResourceType =



to my StringLengthValidator for example.

Now I have a Errormessage.resx in my Resource folder. I also have a and a

Is this the correct approach to make the error messages language specific?

Sep 4, 2009 at 3:56 AM

Yes, that approach should work. I tried it and seems to work just fine. The validation app block retrieves the message template at runtime based on the CurrentUICulture.

Valiant Dudan
Global Technology and Solutions
Avanade, Inc.