ItemCommand event not triggered

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
 
M

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top