如何在asp.net中使用键事件 [英] how to use key events in asp.net
本文介绍了如何在asp.net中使用键事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
先生,我想在asp.net中使用按键事件,我该如何使用?是否可以在asp.net中使用键事件?
example- keypress,keydown.
sir i want to use key events in asp.net how can i use? is it possible to use key events in asp.net?
example- keypress, keydown.
推荐答案
使用javascript
客户端中的关键事件处理ASP.NET中的辅助脚本(JavaScript) [事件键代码-Javascript [使用Javascript处理ASP.NET中的键盘快捷键 [
Use javascript
Key Event Handling in Client Side Scripting (JavaScript) in ASP.NET[^]
Event Key Codes - Javascript[^]
Handling Keyboard Shortcuts in ASP.NET Using Javascript[^]
您需要了解ASP.Net中的事件处理技术. br/> 事件在服务器端处理-请参阅 http://msdn.microsoft. com/en-us/library/6w2tb12s(v = VS.100).aspx [
You need to underestand the event handling technique in ASP.Net.
Events are handled on the server side - see http://msdn.microsoft.com/en-us/library/6w2tb12s(v=VS.100).aspx[^] on how to add events to your code.
In case you need client side events, you need to add events to the scripting language you are using on the client side.
这篇关于如何在asp.net中使用键事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文