Well, something similar to other answer but a little normal workflow.
Just tie a
OnClientClick
of the button to a JavaScript method. Let say, DisableMe();
function DisableMe()
{
btnSubmit.disabled = true;
}
And now, on server side, let the btnSumit code execute. Once all done, put the last line as
btnSubmit.Enable = true;
This was, the moment you click the submit button, it wil get disabled and once all the operation defined in the submit button finishes on server side, the button gets enabled back.