Hi, I work on an old aspx website, and I should to debug some things.
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
<td>
<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"/>
<asp:ImageButton ID="ImageButton1" ImageUrl="img_menu/bt_ok_gris.gif" runat="server" OnClick="rech"/>
</td>
And this is the code of the function :
<script runat"server">
Sub rech(Src As Object, E As System.Web.UI.ImageClickEventArgs)
response.redirect("result_recherche.aspx?mot_cle=" & box_mot.Text)
End Sub
</script>