disable button in ascx page prior to postback
<p>How do I disable a button in an ascx page?  I know how to do it on an aspx page with:</p>

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

<p>But the ClientScript function is not present in the ascx page.</p>
