473,394 Members | 1,663 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to get the keycode press in a web form

win
How to get the keycode press in a web form

Vincent
Jun 27 '08 #1
3 3461
"win" <a@a.comwrote in message
news:u4****************@TK2MSFTNGP04.phx.gbl...
How to get the keycode press in a web form
http://www.google.co.uk/search?sourc...ript+onkeydown
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 27 '08 #2
Hi Vincent,

Since ASP.NET web application is stateless, the server-side page event
model doesn't support those frequent and realtime interactive event such as
"key press" and "key down"...

Normally, we'll use client-side script to handle such key press event. Here
are some web articles introducing this:

#EVENT HANDLER: onKeyPress
http://www.devguru.com/technologies/...onkeypress.htm
l

#Handling cross browser key press events in JavaScript
http://dev.kanngard.net/Permalinks/I...426091851.html

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: "win" <a@a.com>
Subject: How to get the keycode press in a web form
Date: Thu, 15 May 2008 22:51:21 +0800
>
How to get the keycode press in a web form

Vincent
Jun 27 '08 #3
Hi Vincent,

Have you resolved the issue? If you have any further questions, welcome to
post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
bit
>From: st*****@online.microsoft.com (Steven Cheng [MSFT])
Organization: Microsoft
Date: Fri, 16 May 2008 03:14:29 GMT
Subject: RE: How to get the keycode press in a web form
>
Hi Vincent,

Since ASP.NET web application is stateless, the server-side page event
model doesn't support those frequent and realtime interactive event such
as
>"key press" and "key down"...

Normally, we'll use client-side script to handle such key press event.
Here
>are some web articles introducing this:

#EVENT HANDLER: onKeyPress
http://www.devguru.com/technologies/..._onkeypress.ht
m
>l

#Handling cross browser key press events in JavaScript
http://dev.kanngard.net/Permalinks/I...426091851.html

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

================================================= =
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ault.aspx#noti
f
>ications.

================================================= =
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>>From: "win" <a@a.com>
Subject: How to get the keycode press in a web form
Date: Thu, 15 May 2008 22:51:21 +0800
>>
How to get the keycode press in a web form

Vincent

Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Patrick Gibbons | last post by:
I would like to know what keycode # pertains to what keycode . . . This code allows a user to limit the entries in a form to only those keycodes they would like, #s only for US zip codes, for...
2
by: Peter Proost | last post by:
Hi group, I want to verify if my problem also happens with other people, place a radiobutton, two textboxes, and a button on a form then copy paste this code run the prog and press enter on the...
1
by: Paul Nathan | last post by:
Further to my post about keyboard problems, I have discovered that Num Lock seems to change the e.keycode for the arrow keys and the 9 above them excluding scroll lock and pause-break. With Num...
3
by: Pugi! | last post by:
I got this (piece of) script from 'DHTML Utopia - Modern Webdesign - Using Javascript & DOM'. function aKeyWasPressed(e) { if (window.event) { var key = window.event.keyCode; } else { var key...
5
by: WilliamRLinden | last post by:
Hi world! we are pretty new to JavaScript and have been struggling for now 2 days on this problem ... We would appreciate mercy if anyone can give us some. Basically we are trying to simulate...
3
by: Paul Gorodyansky | last post by:
Hi, I have function that works via onkeypressed - for example, what to catch when a user presses a punctuation symbol such as '.' So I check keyCode for that - works just fine in Opera 8,...
2
by: veronicab | last post by:
Hi, I have a small JavaScript code in a page to trap when user presses Return key. My problem is that if you visit the page and then enter a different url in address field, and press Return,...
5
Frinavale
by: Frinavale | last post by:
I have a some text inputs that expect numbers as input. I have written a function that returns false if any key other than one that represents a number is pressed. I call the function during the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.