Solved

ValidationExpression

Posted on 2006-07-02
2
213 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

726 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