ASP.NET,C# [英] asp.net , c#

查看:77
本文介绍了ASP.NET,C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望在我的网站上具有内置的帮助功能,并且无论何时任何用户单击F1,我都应该能够弹出显示适当文本的弹出窗口.

我的问题是如何在asp.net中捕获按键单击事件.

如果有人有任何想法让我知道

i am looking to have an inbuilt help function on my website and when ever any user clicks F1 i should be able to rise the popup showing the appropriate text.

my problem is how can you catch the key click event in asp.net.

if anyone has any ideas let me know

推荐答案

您将必须使用JavaScript.例如查看此代码 [ Uwe
You would have to use JavaScript. Look for example at this code[^].

Catch it in JavaScript, then forward it to your server via Ajax or o.g. simple call a new URL with the help. The latter one would require not passing back the key, to the server at all.

Cheers
Uwe


这篇关于ASP.NET,C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆