c# - How can you disable a.NET ImageButton control on the client side when the ImageButton has an onClick event handler? -


the purpose here prevent users clicking button multiple times during submit/click. i've tried different solutions button control not apply imagebutton.

try following code:

imgbutton.onclientclick = "this.disabled = true;"; 

this disable button @ client side pressed. (the syntax may off - can't test code right now.)


Comments

Popular posts from this blog

java - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -