Solved

ValidationExpression

Posted on 2006-07-02
2
210 Views
Last Modified: 2006-11-18
I have the following ValidationExpression for expecting time in a screen.
without the am pm sign.
but if I enter the time 10:00 I get the message of wrong time.
What is the problem?

ValidationExpression="^([1-9]|1[1-9]|2[0-4]|0[1-9]){1}(:[0-5][0-9]){1}$"

Thankyou Anat
0
Comment
Question by:ANAT2403
2 Comments
 
LVL 18

Accepted Solution

by:
Ravi Singh earned 500 total points
ID: 17026753
Hi, the second alternative in the first group has "...1[1-9]...", i'm guess that should have been "...1[0-9]...", try the following modified expression:

^([1-9]|1[0-9]|2[0-4]|0[1-9]){1}(:[0-5][0-9]){1}$
0
 

Author Comment

by:ANAT2403
ID: 17026810
seems to be O.K.
Thankyou
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

777 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