Capturing Enter Key [ASP.Net]

How am I be able to determine if the user presses on the [ENTER KEY]? The requirement was, if the user press on the enter key, my web application will retrieve data in my database and I am not allowed to make use of a submit button to the said scenario. Can anyone help me.

The only way is using javascript in a onkeypress event. Check if the keychar = 13.

Ancient way:

These days, you can set the DefaultButton property of all kinds of controls.

If you’re doing things asynchronously, just wire up a click event handler to the element you want people to click on.