Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to get the keycode press in a web form

0 views
Skip to first unread message

win

unread,
May 15, 2008, 10:51:21 AM5/15/08
to
How to get the keycode press in a web form

Vincent

Mark Rae [MVP]

unread,
May 15, 2008, 10:59:10 AM5/15/08
to
"win" <a...@a.com> wrote in message
news:u4QL%23tptI...@TK2MSFTNGP04.phx.gbl...

> How to get the keycode press in a web form

http://www.google.co.uk/search?sourceid=navclient&hl=en-GB&ie=UTF-8&rlz=1T4GZEZ_en-GBGB252GB252&q=JavaScript+onkeydown


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Steven Cheng [MSFT]

unread,
May 15, 2008, 11:14:29 PM5/15/08
to
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/ecmascript/QuickRef/evhan_onkeypress.htm
l

#Handling cross browser key press events in JavaScript
http://dev.kanngard.net/Permalinks/ID_20050426091851.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:
msd...@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.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

Steven Cheng [MSFT]

unread,
May 20, 2008, 5:53:16 AM5/20/08
to
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:
msd...@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------

bit
>From: stc...@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

0 new messages