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!

OnTextChanged problem C# IE 8

Status
Not open for further replies.

jimktrains

IS-IT--Management
Jan 19, 2007
50
US
I have a textbox field with an OnTextChanged event. It does what it is supposed to do, although it takes longer than I would like, but when it moves to the next textbox, I cannot type anything into it. If I press TAB in that textbox, it takes me to the address bar and not the next field in the TABINDEX. Pressing TAB only moves through the browser menus and never back to my form. The only way I can enter anything into any other text field is if I select something from a DropDownList.

My textbox is in UpdatePanel. The OnTextChanged event calls a method in the C# codebehind. The method is supposed to look up the ID number entered and find the name and display it in a label below the textbox, which it does. I have even changed the method to enter a generic name in the label so see if my lookup was causing the probelm but it doesn't change the behavior.

My browser is IE 8. When I try this in Firefox 3.5.8 it works exactly as I expect. Someone else tried this with IE7 and it worked as expected so the problem seems to be with IE8. I am trying different things and if I enter text and press Enter instead of TAB, it returns the name, but does not set focus to the next textbox, which Firefox and IE7 does. I have to click into the next box, but I can enter something in that box.

Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top