ASP.NET Custom Validator Client side & Server Side validation not firing

前端 未结 7 1606
梦毁少年i
梦毁少年i 2020-12-12 20:16

This has not happened to me before, but for some reason both the client and server side validation events are not being triggered:



        
7条回答
  •  被撕碎了的回忆
    2020-12-12 21:07

    Thanks for that info on the ControlToValidate LukeH!

    What I was trying to do in my code was to only ensure that some text field A has some text in the field when text field B has a particular value. Otherwise, A can be blank or whatever else. Getting rid of the ControlToValidate="A" in my mark up fixed the issue for me.

    Cheers!

提交回复
热议问题