I've tried to use the following RegEx annotation, but it didn't work:
[RegularExpression(@"([0-9]|[0-9]\d|100)$"]
(this answer suggest that it's a bad approach)
I also tried with maskedInput 1.2.2 (jQuery), but it won't accept any single digit value
jQuery(function ($) {
$("#MyControl").mask("99"); //also tried "9?9"
});
Is it ever possible to have a mask accepting value from 1 to 100 only?