How do I call a function by clicking enter inside a textbox?

rakins

New member
Joined
Jul 30, 2003
Messages
2
I have a simple search to a database that sends a response.redirect to the same page for searching last names in a database and then displayed in a datagrid.

Everything works when I click the "search" button but how can I get that function called when I click enter.

Now, if I click enter the form is reloaded and the text in the textbox is removed.

Anyone, Anyone, ... Bueller
 
click enter the form is reloaded and the text in the textbox is removed? try to check the whether the viewstate of this textbox is enable or disable, you need to enable it.
 
Back
Top