Forum Moderators: open
Having an annoying problem on my site, it is built using asp.net and c# and has a user login box in the corner of the homepage and a search facility. The problem is that when the user enters there username followed by password and then presses enter, the submit button is not pressed and the page refreshes instead and clears the username and password just entered. The submit button works because if you press it with the mouse instead of pressing enter it logs the user in. The same problem happens with the search.
What I want to know is how to submit the form (username/password, search) when the user presses enter? instead of refreshing the page! Any help appreciated