ASP.NET Custom Validator Error Message: Control referenced by the property cannot be validated

前端 未结 2 2024
长情又很酷
长情又很酷 2020-12-18 20:42

I use ASP.NET and have a Button and a CustomValidator, which has to validate the button.



        
2条回答
  •  独厮守ぢ
    2020-12-18 20:56

    You can only use a CustomValidator against Input controls that accept user input:

    Client-side validation enhances the validation process by checking user input before it is sent to the server.

    What you want to do is look here at Button Controls and Validation.

提交回复
热议问题