Enter Key Submission
ASP.NET automatically clicks the first image button on the page unless you specifically state which button to click. This can cause a search box or login form at the top of the page to be executed after filling out a physician search in the middle of the page. To prevent this problem you must wrap your form in a div and tell the div which button to click. You can find the id of the button by viewing the source of the page and looking for the id attribute of the button form element.
<div onkeypress="javascript: return [cp:literal:scripting key='FireDefaultButton' /]">FORM CONTENTS</div>
Fire Default Button
Creates the enter key event for the element..
[cp:literal:scripting key='FireDefaultButton' /]
| Property |
Description |
| targetClass |
This the optional class of the button to be clicked. |