473,503 Members | 1,650 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Web Control dropping Keystrokes

4 New Member
Has anyone experienced this? I have a web control with a number of text boxes. When the user types into one of the text boxes, an occassional character will be dropped. It is not a specific character, or position; the characters are dropped at seemingly random moments. "AutoPostBack" is not set for any of these text boxes, and the control itself is not set for AutoPostBack either.

The code is written in Visual Studio 2003 C#.
Sep 15 '08 #1
5 1276
balabaster
797 Recognized Expert Contributor
Do you have any javascript functioning on the window or on the textbox itself. Specifically do you handle keypress, keydown or keyup and inside of those events, do you have something like evt.handled = false set anywhere? These are the only reasons I can think that a keypress would be dropped. The autopostback shouldn't have any effect as this is handled when you focus out of the textbox. Oh, that leads me to another thought, If you *did* have AutoPostBack enabled on this control and you have any other objects trying to grab focus, then when the other control grabs focus, this one would be prompted to postback if the contents had changed when it lost focus. I'll keep thinking, but I think they're the most obvious answers off the top of my head.
Sep 15 '08 #2
Glenn Rosenthal
4 New Member
I will double-check (I have just inherited this code and problem this morning).

But at this point, I do not see any client-side code/scripting/what-have-you. I am really wondering what to look for when it is a control inside a page.
Sep 15 '08 #3
balabaster
797 Recognized Expert Contributor
I will double-check (I have just inherited this code and problem this morning).

But at this point, I do not see any client-side code/scripting/what-have-you. I am really wondering what to look for when it is a control inside a page.
Normally I would say that if it's literally dropping keystrokes (and of course it's a web application) then it must either be client side code issues (i.e. Javascript) or it must be an issue with the browser or client machine. Is this behaviour consistent across multiple clients or is it a single particular client that's noticing this behaviour?
Sep 15 '08 #4
Glenn Rosenthal
4 New Member
It really doesn't look like anything pertaining to client side coding; I've put in some tracers, and nothing seems to be firing during the data entry. My own theory is its the page containing the control.
Sep 15 '08 #5
balabaster
797 Recognized Expert Contributor
It really doesn't look like anything pertaining to client side coding; I've put in some tracers, and nothing seems to be firing during the data entry. My own theory is its the page containing the control.
If there's no javascript firing on the object nor is there any javascript set at the ASCX level that handles keypress/keydown/keyup, then that leaves the ASPX and any master pages to which the ASPX belongs. Load full page up in IE and do view source. Do a search for keypress, keydown and keyup and see if anything springs up. Keystrokes are handled client side, not server side, so there must be a client script somewhere -

embedded in the ASCX HTML code OR
dynamically added in the code behind for the ASCX OR
embedded in the ASPX HTML code OR
dynamically added in the code behind for the ASPX OR
... you get the picture

...check the ASCX, ASPX and Master pages. Don't forget to check the code behinds for each too. Realise also that a script can be attached to an object at runtime in Javascript without it being in the onlick, onkeypress, onkeydown, onkeyup properties of the object itself - for instance:

Expand|Select|Wrap|Line Numbers
  1. document.onload = function(){
  2.   var elem = document.getElementById("MyElem")
  3.  
  4.   elem.onkeypress = function(event){
  5.     //Do my bidding...
  6.   }
  7. }
This may be added at a higher level than the ASCX, but could still be attached to the object embedded inside. So just because it's not in a user control, doesn't mean it's not there...
Sep 15 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
4968
by: Olli Piepponen | last post by:
Hi, I'm having a little problem catching keystrokes under Windows. I did a little research and found that with mscvrt.getch() one can cath a single key that is pressed. However this doesn't work...
1
2979
by: Will Stuyvesant | last post by:
I never used the popen or popen2 libraries but it is my understanding that they can capture the output of console based programs. Is it also possible to send keystrokes to console base programs? ...
11
3184
by: Brian W | last post by:
Yet another editor problem To reproduce do the following 1) Open a Webform and switch to HTML edit mode 2) Enter the Following (include spaces) This is some text before <asp:hyperlink...
5
1946
by: jqpdev | last post by:
Hello all... I'm coming from a Borland Delphi background. Delphi has a specific component called a Data Module. In the designer the Data Module behaves like a windows form. A developer can...
5
2791
by: Richard Brown | last post by:
Ok, I've been looking through the .NET SDK docs and stuff. I'm wondering if you can provide a control extender that does generic validation or functionality just by dropping it on the form. For...
0
1235
by: Robert Jenkins | last post by:
I am trying to send a string of data to a remote Terminal Server session via the ActiveX client. I can start the session login or logout okay but I can't send data very well. I can send any data...
1
1013
by: Mark | last post by:
Hello, I have a master page with a horizontal menu control which parts of disappear when dropping down across content controls. How do you get the menu control to show no matter what it's...
3
2881
by: =?Utf-8?B?QmVybmFyZG8gU2FsYXphciBuZXdi?= | last post by:
Hi everybody... i need help with this issue: i have a textbox control with the focus. at side, i have a datagridview control populated with some data. i need to control behavior of dgv control...
8
2075
by: =?Utf-8?B?bWljaGFlbCBzb3JlbnM=?= | last post by:
I created a user control that handles certain keystrokes, e.g. Ctrl-C for cut, Ctrl-V for paste, plus other more specialized keystrokes. I want to list these in the menubar like any other menu...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7328
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5013
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
380
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.