Imagine a simple ASPX (or any middleware) page with a text input field and a SUBMIT button.
Why is it that for some pages ENTER magically works to submit a form without using any extra logic?
I always thought pressing the ENTER key was like clicking on the "next" control in the tree on the document (i.e., the control you would be on if you hit TAB).
But many times that does not work. Pressing ENTER just generates an error.
So -- WHAT does the ENTER key do? Why does it sometimes act like clicking SUBMIT and sometimes it does not (i.e. on different pages.)?