Question

1
Replies
65
Views
RatulS51 Member since 2017 13 posts
Accenture Services PVT Ltd
Posted: April 19, 2018
Last activity: April 19, 2018
Closed
Solved

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***

User Interface
Moderation Team has archived post
Share this page LinkedIn