I have a ListView with an ImageButton.
I’ve set the OnItemCommand event of the ListView.
I’ve set the CommandName and CommandArgument of the ImageButton.
For some reason the postback isn’t fired when I click that ImageButton.
I tried to do the same with a normal <asp:Button> and it worked without problems. I had to set the OnSubmitBehavior to false.
So I tried setting the same to the ImageButton and still doesn’t work.
Any Idea ?
This would be the workaround rather than the solution to this specific problem but chances are this will help you:
http://netpl.blogspot.com/2008/01/imagebutton-in-templatefield-does-not.html