asp.net Button OnClick event not firing

前端 未结 15 1713
闹比i
闹比i 2020-11-30 05:43

I have problem in asp.net button control.

I define a button in form, onclick event of button is not firing when I click on the button.

&         


        
15条回答
  •  日久生厌
    2020-11-30 06:18

    I had the same problem, my aspnet button's click was not firing. It turns out that some where on other part of the page has an input with html "required" attribute on.

    This might be sound strange, but once I remove the required attribute, the button just works normally.

提交回复
热议问题