Q:

Submit form when Enter is pressed

I have an aspx page with many buttons and i have a search button whose event i want to be triggered when user press enter.
How can i do this?

A:

You set the forms default button:
<form id="Form1"
    defaultbutton="SubmitButton"
    runat="server">

A:

Make it the default button of the form or panel.
Either one has a DefaultButton property that you can set to the wanted button.

