Getting default error message for int datatype i.e he value 'abc' is not valid for age What should i do.
he value 'abc' is not valid for age
public class HomeViewModel { [Integer(ErrorMessage="provide valid numeric value")} public int age{ get; set; } }
No comments:
Post a Comment