EventHandler is not working for dynamic control

前端 未结 3 699
别跟我提以往
别跟我提以往 2021-01-24 08:16

I have referred Error with the event handlers of dynamic linkbutton . It says to add event handlers in Page_Init or Page_Load. I tired following code.

3条回答
  •  一生所求
    2021-01-24 09:03

    Add javascript onClick attribute to the dymanic control and set hidden field values which is required for the control event. Onclick of the dymanic grid, the will postback and will get the hidden field value. In page load call a method to do the job if the hidden field has value and make it null after doing the job.

提交回复
热议问题