ASP.net Text Box Enter button pressed hell

Posted by Morgeh on Stack Overflow See other posts from Stack Overflow or by Morgeh
Published on 2010-04-15T15:04:38Z Indexed on 2010/04/15 15:13 UTC
Read the original article Hit count: 301

Filed under:
|

Basically I have an asp.net website with login and search pages.

Currently, I have no idea why, when ever a user hits enter in either of the login text boxes (user name/password) or in the Seach text box, the website is redirected to the default page.

I have no idea why this is happening, I've tried setting defaultButton on both the panel containing the search and the login panel but that doesnt seem to work.

I've also tried catching the key press event with javascript which isnt working either.

I have no idea what event is being fired and why, or why it seems to override everything I try to do.

Anyone seen anything like this before?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#