ASP.NET Disable button and run the function

Broumenn

New Member
I am facing this issue where I manage to disable button but somehow the function didn't run. I suspect that the function stops right after my button is disabled. Any idea that can solve this issue when user click on the button, the button will be disable immediately and the button will runs the function behind. Below are the codes that I'm using for my button. \[quote\] INPUT TYPE ="Submit" NAME ="Submit1" ID = "Submit1" VALUE ="http://stackoverflow.com/questions/15754307/Create New Sales Contract" SIZE ="30" onclick="this.disabled=true;CheckGWidth(this.form),this.form.ContractType.value='http://stackoverflow.com/questions/15754307/N'" \[/quote\]Note:\[quote\] [*]this.disabled=true; 'To disable this button' [*]CheckGWidth(this.form),this.form.ContractType.value='http://stackoverflow.com/questions/15754307/N' 'This is a function that will process this page' \[/quote\]
 
Back
Top