Solved

When I enter a value in the combo box and press the Enter-Key, the onTextChanged Event does not executed, instead it calls the Click Event of the first Button at the top the asp.net page.

Posted on 2003-12-08
7
419 Views
Last Modified: 2013-12-25
When I enter a value in the combo box and press the Enter-Key, the onTextChanged Event does not executed, instead it calls the Click Event of the first Button at the top the asp.net page.
0
Comment
Question by:musclejack
7 Comments
 
LVL 8

Expert Comment

by:ampapa
ID: 9895850
So, what is your question?
0
 
LVL 48

Expert Comment

by:AlexFM
ID: 9895942
onTextChanged event is called for each symbol typed in the text box. When you press Enter text is not changed, and event is not called.
0
 
LVL 9

Expert Comment

by:p_sie
ID: 9895944
What about the KeyUp event with keycode 13?
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Author Comment

by:musclejack
ID: 9895954
It seems like when I hit the enter key, it will loop through and call all the functions in the page, and my question is after enter some text in the combo box, how can I call the onTextChangedEvent only when I press enter and not all the functions/events in the page
0
 
LVL 48

Expert Comment

by:AlexFM
ID: 9896032
Your question shows that you don't need onTextChangedEvent at all. You don't want to validate text every time user presses a key. So, validate text in other place, for example, when user presses Submit button, or when textbox looses input focus.
0
 
LVL 48

Expert Comment

by:AlexFM
ID: 9896039
Or you can call the same function both from onTextChangedEvent and from any other place.
0
 
LVL 28

Accepted Solution

by:
mmarinov earned 500 total points
ID: 9959728
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now