In your Aspx file use OnClientClick
<asp:Button1 runtat="server" OnClientClick="return false"
Or if you want to handle it in your code behind file then you should add this as a attribute to your button: like
Button1.Attributes.Add("onclick", "return false;");