change mask clienside

2 posts, 0 answers
  1. Datamex
    Datamex avatar
    161 posts
    Member since:
    Jun 2012

    Posted 20 Sep 2011 Link to this post

    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?

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 20 Sep 2011 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top