Search code examples
asp.nettimedefaultmaskedtextbox

Masked edit textbox default for time


I have a masked edit textBox and want to use it for editing a timetable. It works fine when editing but when I set a default (es. 20:00:00) it appears 200000 (no colon) even if I have set Mask="99:99:99". The complete code for the textbox is:

20:00:00


Solution

  • If you add ClearMaskOnLostFocus="false" on the ajax Masked Edit control properties, it should keep the mask there for you.