EventHandler is not working for dynamic control

前端 未结 3 703
别跟我提以往
别跟我提以往 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 08:42

    Dynamic controls must be re-created on every postback, this Article is a good link about how to persist dynamic controls and their state.

提交回复
热议问题