Solved

MaskedEditExtender - RightToLeft and times greater than 24 hours

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

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…
Thoughout my experience working on eCommerce web applications I have seen applications succumbing to increased user demand and throughput. With increased loads the response times started to spike, which leads to user frustration and lost sales. I ha…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

809 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