ASP.NET confirmation box showing twice
<p>I've searched for a way to display a confirmation box when a certain button is pressed.
The only problem I have, is that the confirmation box shows twice.
Code:</p>

<pre><code>&lt;dx:ASPxButton ID="btnDel" runat="server" onClick="btnDel_Click" Text="Delete"&gt;
</code></pre>

<p>and in Page_Load:</p>

<pre><code>btnDel.Attributes.Add("onclick", "return confirm('Are you sure?');");
</code></pre>
