D
David Davis
I have a webform with an ImageButton on it. I have assigned an
OnClientScript that calls a javascript function that disables the button like
this:
<script language="javascript">
function DisableButton() {
document.getElementById("ImageButton1").disabled = true;
}
</script>
I have code-behind in the ImageButton1_Click sub that I want to process, but
that code never runs if the OnClientScript disables the button.
Is there a way to disable a button and run code-behind for it?
OnClientScript that calls a javascript function that disables the button like
this:
<script language="javascript">
function DisableButton() {
document.getElementById("ImageButton1").disabled = true;
}
</script>
I have code-behind in the ImageButton1_Click sub that I want to process, but
that code never runs if the OnClientScript disables the button.
Is there a way to disable a button and run code-behind for it?