utilitaire
Regular
- Joined
- May 4, 2005
- Messages
- 77
What is the best way to handle cross-language validation with validators?
Here's a commun validator:
I have to display my Error messages in multi-language, depending on cultureInfo. How would you manage that? Databinding? Code behind? I love validators since I never have to write a single line of code in the code-behind. XML is clean, and my code-behind is always very short. What would be the best way? I would like many suggestions. Theses solutions should be very elegant.
Thank you.
Here's a commun validator:
Code:
<asp:RequiredFieldValidator
runat="server"
ControlToValidate="toto"
ErrorMessage="field must be filled"
>
</asp:RequiredFieldValidator>
I have to display my Error messages in multi-language, depending on cultureInfo. How would you manage that? Databinding? Code behind? I love validators since I never have to write a single line of code in the code-behind. XML is clean, and my code-behind is always very short. What would be the best way? I would like many suggestions. Theses solutions should be very elegant.
Thank you.