how to disable a button from doing a 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;" />