This is a migrated thread and some comments may be shown as answers.

change mask clienside

1 Answer 56 Views
Input
This is a migrated thread and some comments may be shown as answers.
Datamex
Top achievements
Rank 2
Datamex asked on 20 Sep 2011, 11:25 AM
Hi!

Is it possible to change the mask and displaymask of a maskedtextbox clientside? I have a combobox with countries and based on that value i want to change the mask and displaymask of the maskedtextbox. Is this possible?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 20 Sep 2011, 12:13 PM
Hello,

Check the following forum thread which implements on how to set mask on javascript.
Setting Mask with Javascript
Then unfortunately you could not change the display mask with javascript. It could just be set by the DisplayMask property in the asp code.

Thanks,
Princy.
Tags
Input
Asked by
Datamex
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
Share this question
or