Textbox should have numeric values between 8 to 16 bytes
I want a text box to have only numeric values which can range from 8 to 16 bytes. I am using a (<8) function to restrict the lower limit and the MaxLength=16 for the upper one. And I am using the IsRegexMatch method as (\d{16}) to do the numeric validation. But the problem is that the Regex method is throwing error if I enter any value less than 16 bytes.
How do I solve it?
***Edited by Moderator Marissa to update categories***