Skip to content

Replies

0
Chinho
Chinho answered on Dec 29, 2013 4:34 AM

Hi,

I have GOT it. Basically to solve this issue of events not triggering, I move my even registering from Page_Load to Page_Init.

It seems my registering of event handler was too late. When I move it to Page_Init, it works!

Thanks.

cno

0
Chinho
Chinho answered on Dec 28, 2013 5:03 AM

Hi,

Based on your example, you have created your LinkButton column in HTML, thats why it works. What if we want to create the TemplateDataField LinkButton column in runtime??

How shall we approach registering the event in the InstantiateIn() of the ITemplate class, because the convention

lnkButton.Click += new EvtHandler(xxxx);

doesnt work.

Please reply ASAP, Thanks.

cno