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

前端 未结 7 1579
梦毁少年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:09

    Server-side validation won't fire if client-side validation is invalid, the postback is not send.

    Don't you have some other validation that doesn't pass?

    The client-side validation is not executed because you specified ClientValidationFunction="TextBoxDTownCityClient" and this will look for a function named TextBoxDTownCityClient as validation function, but the function name should be TextBoxDAddress1Client

    (as you wrote)

    0 讨论(0)
提交回复
热议问题