disable buttons in aspx page
<p>I am trying to disable buttons in an aspx form.  This works:</p>

<pre><code>btnSave.Attributes.Add(
    "onclick",
    "this.disabled=true;this.value='Saving...';needToConfirm=false;" +
    ClientScript.GetPostBackEventReference(btnSave, "").ToString());
</code></pre>

<p>But there are two buttons on the form and I want to disable both.  This does not work:</p>

<pre><code>btnSave.Attributes.Add(
    "onclick",
    "this.disabled=true;this.value='Saving...';document.getElementById(&lt;%=btnDelete.ClientID %&gt;).disableneedToConfirm=false;" +
    ClientScript.GetPostBackEventReference(btnSave, "").ToString());
</code></pre>
