Ray's Asp.net Blog
Answers and code snippets from ASP.NET projects (Webforms/MVC/Classic ASP)
Pages
Event registration app with QR/Paypal
Home
Friday, May 2, 2014
How to add number only validation in ASP.NET MVC data model by Data Annotation attribute?
[
Range
(0,
int
.MaxValue, ErrorMessage =
"Number please"
)]
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment