justinpees justinpees - 6 months ago 34
ASP.NET (C#) Question

What is the regex ValidationExpression to allow only numbers 1 to 100 in text box?

I would like to limit my users input in text box to allow only positive numbers from 1 to 100 how can I do this using a regex expression?

Answer Source

Check that the string is 100 or two digits:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download