asp.net imagebutton firing on Enter key
<p>I researched this problem here on SO and tried the apparent solution which did not work, so here it is:</p>

<p>I have a very complex form with among other controls, three autocompleting textboxes.</p>

<p>I also have a client who cannot seem to stop entering a value in the textboxes and hitting the Enter key to select the desired value from the autocomplete list.</p>

<p>When they hit Enter, the first imagebutton in the form fires, doing something completely different. So to them, the form is broken.</p>

<p>What I need to do is to prevent the Enter key from firing these imagebuttons (there are 10 of them in the form).</p>

<p>I have tried the following code in both Page_Load and Page_LoadComplete, neither of which work:</p>

<pre><code>imgbtn1.Attributes.Add("onkeydown", "return (event.keyCode!=13);")
</code></pre>

<p>Any advice that saves me a few hairs is appreciated.</p>
