ImageButton does not call the 'Click' event

0

I have an ImageButton inside a grid, when I click the button this does not call the corresponding click event. Any idea what might be causing this error?

    
asked by anonymous 25.06.2015 / 14:56

2 answers

1

Onclik event does not work inside the grid, to manage the events within the grid use the OnRowCommand

Learn how to use the OnRowCommand here !

    
25.06.2015 / 16:14
0

The error was occurring for the following reason: The grid is loaded through an ObjectDataSource and in this pagination-enabled, it turns out that the SelectCountMethod query was different from the SelectMethod and this was causing the mistake.

Thanks for your help and attention.

    
26.06.2015 / 15:33