asp.net Button OnClick event not firing

前端 未结 15 1688
闹比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:12

    Have you copied this method from other page/application ? if yes then it will not work, So you need to delete the event and event name assigned to the button then go to design and go to button even properties go to onClick event double click next to it, it will generate event and it automatically assigns event name to the button. this should work

提交回复
热议问题