1

Closed

multi language

description

hi
        var messages = new System.Collections.Specialized.NameValueCollection();
        messages.Add("username","my username can not empty or other message");
        return new ValidatorCollection
        (
            new ValidatePresence("username") { ErrorMessages=messages, ErrorMessageFormat="{0}"}
        )
this codes cann't show my message! this codes show only 'username'.
        var messages = new System.Collections.Specialized.NameValueCollection();
        messages.Add("username","my username can not empty or other message");
        return new ValidatorCollection
        (
            new ValidateElement("username") { Required = true,ErrorMessages=messages, ErrorMessageFormat="{0}"}
        )
this code show 'The field username is required'
Closed Sep 17, 2009 at 2:59 PM by jbaurle

comments