如何设置诸如"F5"之类的快捷键.到Web应用程序中的按钮... [英] How to set a shortcut key like"F5" to a button in web application ...
本文介绍了如何设置诸如"F5"之类的快捷键.到Web应用程序中的按钮...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在asp.net中将快捷键"F5"设置为按钮?
How to set a shortcut key like"F5" to a button in asp.net?
推荐答案
F5是许多浏览器的浏览器刷新键. /> IMO,您不应将其更改为由页面控制.
F5 is the browser refresh key for many browsers.
IMO, you should not be changing this to be controlled by your page.
在VB中,这很简单...
In VB it is simple...
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
Select Case KeyCode
Case vbKeyF2
Call Proc_Event1
Case vbKeyF3
Call Proc_Event2
End Select
End Sub
我想它在asp.net中不会有太大的不同
希望对您有帮助
(顺便说一句,不要分配F1,F5或F12)
I imagine it would not be too different in asp.net
Hope that helps
(BTW, Don''t assign F1, F5 or F12)
这篇关于如何设置诸如"F5"之类的快捷键.到Web应用程序中的按钮...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文