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
422 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

808 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