Click here to Skip to main content
15,881,424 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I require a textbox control that would accept input in the form : 2 w 3 d 5 h 6 m. User should be able to edit the values before d, w, h and m ( which represents weeks, days, hours, minutes). Is it possible to use MaskedTextBox to achieve the same. w,d,h and m should not be editable.

Thanks,
Divya
Posted

You can accomplish this by implementing a MaskedTextProvider.
See an example of how to implement it here.
 
Share this answer
 
You can implement it by using CSS class. Create a CSS class and in document.ready create a function using query(".cssclassname").functio{ write the regular expression to validate the input given in any input text box which ever has added this class}.
As query can access any control using either Id or a CSS class name. Please let me know if need more clarification


Thanks and regards
Murtuza
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900