Try this code sample:
<asp:Button ID="cmdIvoke" runat="server" onclick="cmdIvoke_Click" OnClientClick="alert('client side invoked');return true;" Text="Invoke Both" />
You can control the execution of the server side code by the return value, true means continue executing the server side handler code.