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.
Page_Init
Page_Load
Dynamic controls must be re-created on every postback, this Article is a good link about how to persist dynamic controls and their state.