[quote=84873:@Richard Albrecht]The btnNext never gets set to Enabled = False
Does anybody have an idea Why[/quote]
What make you think the Button never gets set to Enabled = False ?
Because you can still click on It and it will repeat the Action ?
Because when you hover the mouse it still changes its visual state ?
Because you checked its value in the WebTimer and it is still set to False ?
Did a quick experiment on Mac and Windows by setting two buttons on a window and placing code to switch enabled between them. It works fine. The disabled button is grayed out.
You may want to run the same test. Then go through your code to see what is wrong.
Except that his code above doesn’t re-enable the button. Plus, he states that the progress bar does appear then disappear, so that would seem to prove that SendAuthorizeNet is a synchronous call, and that the page is being updated.
Richard, what is the period of the timer? And are you sure that the button is named btnNext? Maybe that is really another button that you don’t realize is being set. Using Me instead of btnNext as Guy suggested would ensure you’re controlling the correct one.
[quote=85303:@Richard Albrecht]Here’s the actual call in SendAuthorizeNet:
result = S.Post("https://secure.authorize.net/gateway/transact.dll", 30) // Synchronous
The btnNext is the name, The timer is set to 1000.
I can’t use me as the Button Action calls a much larger function, thats where this is called.[/quote]
Have you tried to create a test project containing buttons and code to enable/disable them ? Or add a button on your page that simply contains btnNext.Enabled = False to check the result ?