Author: Laval1 | Posted on: 10/28/2009 2:36:14 PM | Views : 1082

I would like to localize all error messages like InvalidPasswordErrorMessage programmatically.
I know how to access controls like
CompareValidator PasswordCompare = CreateUserWizardStep1.ContentTemplateContainer.FindControl("PasswordCompare") as CompareValidator;
            if (PasswordCompare != null)
            {
                PasswordCompare.ErrorMessage = ResourceLocalizationManager.GetResourceValue("Account.EnteredPasswordsDoNotMatch", Norvatech.Common.Context.Current.CurrentLanguage.PkId).LocalizationResourceValue;
                PasswordCompare.ToolTip = ResourceLocalizationManager.GetResourceValue("Account.EnteredPasswordsDoNotMatch", Norvatech.C ...

Go to the complete details ...