Re: Disabling buttons when a form is submitted



add handler to the onsubmit of the form and disable each button that u
want:

<body>
<form id="form1" runat="server" onsubmit="return
DisableButtons();">
<div>
<asp:Button ID="Button1" runat="server" Text="Button" />
</div>
</form>
<script type="text/javascript">
function DisableButtons()
{
document.getElementById('Button1').disabled = true;
return true;
}
</script>
</body>

.