How to Disable Start Button While Browser Processing the Request
<p>I have start and stop buttons
and i use it to 
start and stop window service on server.<br>
When i click on start button service starts but it take some time to start the service
within that time span means to start the service.
I have to disable start button on client side,
same thing to disable stop button.</p>

<p>while button is disabled i have used below code
btnStart disable but windows service not starts ...</p>

<p>javascript</p>

<pre><code> function btnStartClick()
 {
 $("input[ID=btnStart]").attr("disabled", "disabled");
 }
</code></pre>

<p>C#</p>

<pre><code>protected void btnStart_Click(object sender,EventArgs e)
{
//service starst code here
}
</code></pre>

<p>Markup</p>

<pre><code> &lt;asp:Button ID="btnStart" runat="server" Text="Start" OnClientClick="return btnStartClick();" OnClick="btnStart_Click" /&gt;
</code></pre>
