?
Solved

MaskedEditExtender - RightToLeft and times greater than 24 hours

Posted on 2009-04-14
4
Medium Priority
?
1,119 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 1200 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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
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.
Suggested Courses

765 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