Link to home
Start Free TrialLog in
Avatar of Fraas
Fraas

asked on

How to disable the ASP.NET button after the click

Hi

I have Server Side button Control perform critical operation using asp.net
I want after any one click on this button to make the button unlikable or disable to prevent the visitor from click on the button twice
Which JavaScript code can I use it to make the asp.net button (Server Site Control) unlikable or disable after the click ??

And thanks with my best regarding
Avatar of Zvonko
Zvonko
Flag of North Macedonia image

The button has alread now an onClick event handler. You need to extend that handler. Show either the backend side script for that button or the html result onclick event handler from browser and I can show you how to block second click.
Basicaly you cand do it youself like this:
"onclickJobTodo();this.onclick=null;"

ASKER CERTIFIED SOLUTION
Avatar of renjurdevan
renjurdevan
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial