Solved

MaskedEditExtender - RightToLeft and times greater than 24 hours

Posted on 2009-04-14
4
1,105 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
  • 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction (All good things must come to an end (http://en.wikipedia.org/wiki/All_Good_Things...)) The original MySQL API (http://php.net/manual/en/book.mysql.php) has gone away, deprecated by PHP in Version 5.5, and removed from PHP in all curre…
New Relic: Our company recently started researching several products to figure out what were the best ways for us to increase our web page speed and to quickly identify performance problems that we may be having. One of the products we evaluated wa…
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.
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

760 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now