Here's a bit of code I found to solve this problem:
<script language=javascript>
<!--
var clickedButton = false;
function check()
{
if (clickedButton)
{
clickedButton = false;
return true;
}
else
{
return false;
}
}
//-->
</script>
</HEAD>
<BODY ms_positioning="GridLayout">
<FORM ID="Form1" onSubmit="return check()">
<INPUT TYPE="TEXT" ID="Text1" NAME="Text1">
<INPUT TYPE="SUBMIT" onClick="clickedButton=true" ID="Submit1"
NAME="Submit1">
</FORM>
</BODY>
I know that it is bad for me to answre an ASP question here,
but I guess I was born to be bad!