How to execute a function when "Enter" is pressed?
<p>I work on an old aspx website, and I should to debug some things.</p>

<p>I would like to execute a function when the Enter touch is pressed, how do I do it ?
The onClick on the imagebutton is working, but I don't know how to do it when you push Enter after typing a text in the textbox</p>

<pre><code>&lt;td&gt;
&lt;asp:TextBox ID="box_mot" Text="Entrez un mot-clef ou le nom d’un professionnel " runat="server" style=" border:0px ;color:#OOOOOO;font-family: arial;font-size:10px; height:16px; width:260px"/&gt;
&lt;asp:ImageButton ID="ImageButton1" ImageUrl="img_menu/bt_ok_gris.gif" runat="server" OnClick="rech"/&gt;
&lt;/td&gt;
</code></pre>

<p>And this is the code of the function :</p>

<pre><code>&lt;script runat"server"&gt;
    Sub rech(Src As Object, E As System.Web.UI.ImageClickEventArgs)
    response.redirect("result_recherche.aspx?mot_cle=" &amp; box_mot.Text)
    End Sub
&lt;/script&gt;
</code></pre>
