ModalPopupExtender closes when Enter key pressed

ApexCo used Ask the Experts™
I'm looking to turn this behavior around and have the enter key do a submit when the modal is in focus.

Does anyone have any sample code or an article I can reference?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2013
Did you try setting DefaultButton Property of the Panel control used i.e. PopupControlID


Thanks for the reminder on that, I got it working with some javascript, but had forgotten all about that property.

Wish we could use jQuery on this project instead of the MS Ajax controls.

The above did not work for me, but this did:

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial