【问题标题】:How to keep the mask character displayed if the value is valid and remove the mask character if there is no input value如果值有效,如何保持掩码字符显示,如果没有输入值,如何删除掩码字符
【发布时间】:2012-06-09 15:28:42
【问题描述】:

当MaskedEditExtender的输入文本没有被聚焦时,如果值有效,我想保持掩码字符显示,如果没有输入值,我想去掉掩码字符。

谢谢

【问题讨论】:

    标签: c# asp.net asp.net-ajax ajaxcontroltoolkit


    【解决方案1】:

    如果是文本框,可以使用 OnClick 事件动态生成 MaskedEditExtender,然后使用 OnTextChanged 事件检查是否还有输入值。如果有,则保留该控件,如果没有,则将其删除。

    【讨论】:

      猜你喜欢
      • 2019-01-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多