Russ Suter
asked on
Default button no longer default after disable then enable
My web page has a default button. The button disables itself after a click to prevent duplicate clicks. If the processing fails it enables again to allow a retry but the button no longer behaves like the default button (i.e. I can't press the enter key to activate it) after it has been enabled again. Is there a way to make it the default button again after being re-enabled?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
on page load write:-
where Button1 is the ID of Defautl Button.
Page.RegisterHiddenField( "__EVENTTARGET", Button1.ClientID );
where Button1 is the ID of Defautl Button.
https://www.experts-exchange.com/questions/21161138/Default-button-when-you-press-Enter-key.html
https://www.experts-exchange.com/questions/26857935/java-script-works-for-IE-not-firefox.html