Re: Disabling buttons when a form is submitted
- From: shaharh@xxxxxxxxx
- Date: 25 Feb 2006 03:10:27 -0800
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>
.
- References:
- Disabling buttons when a form is submitted
- From: dougloj
- Disabling buttons when a form is submitted
- Prev by Date: Re: Programmatic Forms Authentication
- Next by Date: ASP 2.0 Membership API
- Previous by thread: Disabling buttons when a form is submitted
- Next by thread: ASP 2.0 Membership API
- Index(es):