ModalPopupExtender closes when Enter key pressed

ApexCo
ApexCo used Ask the Experts™
on
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?
Comment
Watch Question

Do more with

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

Author

Commented:
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.

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

http://support.microsoft.com/kb/298498

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