I'm guessing Javascript is the best way to do this because I need to disable a button to stop multiple post backs. I have added the following function:
Code:
<script type="text/javascript">
function disablebutton() {
document.getElementById("LoginButton").disabled = true;
}
</script>
and added to my ASP button:
OnClientClick="disablebutton()"
Problem is I get the following error:
Microsoft JScript runtime error: Unable to set value of the property 'disabled': object is null or undefined
Can anyone help?