Thursday 8 September 2011

Using a Form tag or Panel to handle Submit on pressing Enter

If you need to submit a form when the enter key is pressed there are a couple of simple options.

There is a property on both the Form Tag, and an ASP Panel called 'DefaultButton' simply specifying the ID of the button in this property will fire the button click when the enter key is pressed whilst in that container.

No comments:

Post a Comment