How can I rewrite the ErrorMessage for a CustomValidator control on the client?

前端 未结 9 1314
鱼传尺愫
鱼传尺愫 2020-12-11 05:45

I have a CustomValidator that is validating a telephone number for several different telephone numbering schemes. The client-side javascript looks like this:



        
9条回答
  •  一生所求
    2020-12-11 06:02

    Try this...

    Use sender.textContext in the Javascript for the error message and setup your CustomValidator as such:

    
    

提交回复
热议问题