Avatar of arcross
arcrossFlag for United Kingdom of Great Britain and Northern Ireland asked on

Disable control on the page when click a button

id like to disable a button in a wizard control when another button in the same wizard is click.

this what ive got on a clientclick event:

But id like to disable different control than the one im clicking

Avatar of undefined
Last Comment
Ted Bouskill

8/22/2022 - Mon

Like this:

Open in new window


But be aware that the disabled state will last ONLY until next postback.
You have to disable that different control at backend side and not by JavaScript in the front end.

that will be fine. It is only for the time an image is uploading to the server. To avoid the user click a button.
Ill try that and ill let you know
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.

Zvonko, it is not disabling it....any thoughts?

My thougts are already above: you expect you can disable a control by JavaScript for the rest of the session. That assumption is WRONG! The attribute disable is valid only until next page reload at postback. You even will not notice the disable because after the disable is immediatelly the postback following. So is the diable in vain.

You have to do it by backend features and not by JavaScript browser event handlers.

I put a sleep for 2 seconds in the page load event and i added to onclientclick event


Which disables the whole page for 2 seconds. Because that works i assumed disabling only a button will be the same ??? Even im disabling the same button in clicking and that works but no to a different button.

i just want to disable a button while an image is uploading. It takes about 5 secods to upload. And when that finishes the button will be enabale again.

Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Ted Bouskill


tedbilly, what i want is to disable a different button that the one im clicking. I cant find any example in those links
Ted Bouskill

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question