asp.net - Handle Enter Key on Website (ASP and VB) -


So I have several asp control websites when I enter the entry form, the search function runs because it The first thing found on the page is

How do I handle the enter button so that the active text box is for the login form, the Loginbutton code actually runs instead of searchbutton.

The last problem is that login controls are in a loginview so that the hierarchy shows that the asp: text box and asp:

   

Just a note that all controls are asp and all code is preferred in VB. Thank you

You want to set the default button on the form like this:

  Page.Form.DefaultButton = "LoginButtonId"  

MSDN Docs:

Additionally, see this question for a question related to this issue in Firefox:


Comments

Post a Comment

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -