I have start and stop buttons
and i use it to
start and stop window service on server.
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.
while button is disabled i have used below code btnStart disable but windows service not starts ...
javascript
function btnStartClick()
{
$("input[ID=btnStart]").attr("disabled", "disabled");
}
C#
protected void btnStart_Click(object sender,EventArgs e)
{
//service starst code here
}
Markup
<asp:Button ID="btnStart" runat="server" Text="Start" OnClientClick="return btnStartClick();" OnClick="btnStart_Click" />