how to prevent asp button from postback code example
Example: prevent asp button from postback
<asp:button runat="server".... OnClientClick="myfunction(); return false;" />
<asp:button runat="server".... OnClientClick="myfunction(); return false;" />