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?
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?
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 !
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.