Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wrong event getting fired on pressing enter

Status
Not open for further replies.

collegian

Programmer
Jul 1, 2010
64
0
0
US
Hello All,

I have two search text boxes and two corresponding buttons on my web page.One of the textboxes is a default textbox coming from the .master page and the other one is local to the page.Now,when I enter some text into the local textbox and press enter, the event of the master page button gets fired instead of that of the local button.How do I fix this issue? I tried to shift focus to the local button and on the text changed event but the master page button event is always the last one which is getting fired.Any suggestions/comments wil be grately appreciated.

Thanks in advance.
 
Google "ASP.NET default Button"
Your answer will be in the first link.

Remember, Google is your friend.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top