Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Digit's Counting

Posted on 2011-09-07
4
Medium Priority
?
315 Views
Last Modified: 2012-06-27
Hi,
    I want to give range of digits count to my text box . minimum 4  Digits and Maximum 10 Digits. I tried using Range Validation but it showing Minimum Value. Could any one Help me to give  Range of Digit count Validation To My asp.Net Text Box. Thank you.
0
Comment
Question by:CPSRI
  • 2
4 Comments
 
LVL 5

Accepted Solution

by:
zvytas earned 2000 total points
ID: 36494267
You can use Regular Expression validator with the following regexp:

(?:\d.*){4,10}
0
 
LVL 40

Expert Comment

by:Gurvinder Pal Singh
ID: 36494349
1000 < value < 9999999999

will also do :)
0
 
LVL 40

Expert Comment

by:Gurvinder Pal Singh
ID: 36494350
I meant

 1000 <= value <= 9999999999
0
 

Author Closing Comment

by:CPSRI
ID: 36494382
Thank You
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question