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

前端 未结 9 1329
鱼传尺愫
鱼传尺愫 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 05:59

    The best way to change the error message of a validator control with image is:

    sender.innerHTML = "YOUR HTML WITH ANYTHING COME HERE"
    

提交回复
热议问题