HtmlButton object causes double postback in Web Form

The solution is to add type="button" attribute to the html element

<button ID="SomeId" OnServerClick="SomeId_Click" type="button" runat="server">"Some Text</button>

Comments