change validate message in data annotation

Posted by user276640 on Stack Overflow See other posts from Stack Overflow or by user276640
Published on 2010-03-13T20:37:53Z Indexed on 2010/03/13 20:45 UTC
Read the original article Hit count: 343

my object has field with data type int. when i put in html form in this textbox letter not number the validator say- The field must be a number. how can i change this messages like this

 [Required(ErrorMessage = "??????? ????????")]
    [DisplayName("????????")]
    public int age { get; set; }

© Stack Overflow or respective owner

Related posts about dataannotations

Related posts about validation