Solved

MaskedEditExtender - RightToLeft and times greater than 24 hours

Posted on 2009-04-14
4
1,116 Views
Last Modified: 2013-11-07
When I try to use MaskedType="Time" or "None" and InputDirection="RightToLeft", the input always starts from the left. Also I would like to enter times greater thab 24:00, such as 30 hrs 15 mins. Is there a way to do either of these?
0
Comment
Question by:hwsitservices
[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
  • 2
4 Comments
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 300 total points
ID: 24145971
I think Time means something like 7:45 and 30 hrs 15 mins is a TimeSpan not Time. So you may have to use some other form of validation or masking.

Check this forum

http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/8262e6da-15a6-4ff5-a3a9-fe6738171260
0
 

Author Comment

by:hwsitservices
ID: 24149161
I now understand what you are saying about the difference between time and timespan. I am still having am issue with setting MaskedType="None" and InputDirection="RightToLeft",the input always starts from the left. Have any ideas on this?
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 24149476
I think in ASP.NET, it depends on the regional and language settings of the client machine. Did you try changing the client machine regional settings and then test it?
0
 

Accepted Solution

by:
hwsitservices earned 0 total points
ID: 24224552
What I ended up doing was making it MaskedType="Number" with a Mask="99:99" ClearMaskOnLostFocus="false" and InputDirection="RightToLeft". Then I added a RegularExpressionValidator with ValidationExpression="^([0-2_][0-9_]|3[0-6]):([0-5_][0-9_])$" as I want times up to 36:59.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
This video teaches users how to migrate an existing Wordpress website to a new domain.
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.

737 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