error with validation for decimal datatype
Posted
by Ali
on Stack Overflow
See other posts from Stack Overflow
or by Ali
Published on 2010-03-22T13:01:04Z
Indexed on
2010/03/22
13:01 UTC
Read the original article
Hit count: 418
asp.net-mvc
hi
this is my code for validation money type
[Required(ErrorMessage = "???? ???????? ?? ???? ????")] [RegularExpression("^[+]?\d*$", ErrorMessage = "*")] public decimal FirstlySum { get; set; }
if i enter very word for textbox i got this error
The value 'asdf' is not valid for FirstlySum.
the error message dosen't show.
how can i fix it?
© Stack Overflow or respective owner