How to disable asp.net after click?
<p>I want to disable a server side asp.net button control after click for some seconds &amp; then fire a server side event. I am trying to use setTimeout but if I use setTimeout the server side event is never fired. Can anybody help?</p>

<pre><code>   &lt;script type="text/javascript"&gt;
    function disableBtn(btnId, dspTxt) {
        var btn = document.getElementById(btnId);
        btn.value = dspTxt;
        setTimeout(btn.disabled = true,1000);
    }
&lt;/script&gt;
</code></pre>
