How to allow only positive number to be entered in editorforfield in asp.net mvc 5
This accepts only positive numbers.
System.ComponentModel.DataAnnotations
[Range(1, int.MaxValue, ErrorMessage = "Only positive number allowed")]
This accepts only positive numbers.
System.ComponentModel.DataAnnotations
[Range(1, int.MaxValue, ErrorMessage = "Only positive number allowed")]