?
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
Medium Priority
?
443 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 2000 total points
ID: 9959728
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…
Suggested Courses
Course of the Month14 days, 16 hours left to enroll

840 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