ItemCommand event not triggered

  • Thread starter Thread starter Markus
  • Start date Start date
M

Markus

Hi all!

I have a datagrid where I added a template column. I added an ImageButton to
the template column and set its command name. I registered the grid's
ItemCommand handler. If I click on the image button, the ItemCommand event
is not triggered. If I add a LinkButton instead of an image button it works.

Does anybody know why the ImageButton does not trigger the ItemCommand
event?


Thanks

Markus
 
Hi!

I found the problem: within Page_Load() I am re-binding data (not regarding
if it's a postback or not). This cancels the ItemCommand event.

Markus
 
Back
Top