Disabled asp.net button disables validation for button

后端 未结 3 1168
暖寄归人
暖寄归人 2021-01-21 17:11

I have an aspx page that contains a checkbox, and a button. The button is disabled by default until the user checks the checkbox. It looks like when I add the attribute enable

3条回答
  •  醉酒成梦
    2021-01-21 17:51

    It seems like the validation should be attached to the checkbox, not the button.

提交回复
热议问题