The OnClientClick property of ASP.Net ImageButton provides the functionality to execute the client side script before sending the form data to the server. If you will specify any client side code for this property of ImageButton control it will be executed at the time of Click event whether it is being handled by the Click event handler or Command event handler at the server.
