在ASP.net中捕获Enter键 [英] Capture Enter Key in ASP.net

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

问题描述

亲爱的所有人,

请指导我们如何捕获每个回车键,并按下光标将光标移到下一个文本框.

问候,

J.Gupta

Dear All,

Kindly guide how we can capture the Enter Key with every enter pressing the cursor move to next text box.

regards,

J.Gupta

推荐答案

我刚刚在Google中找到了这些

ASP.NET在输入密钥默认提交按钮"上提交表单 [ ^ ]
在ASP.NET TextBox控件中输入密钥 [ ^ ]
在ASP.NET中输入密钥-完整研究 [
I just found these in Google

ASP.NET Submit form on Enter Key Default submit Button[^]
Enter Key in ASP.NET TextBox Control[^]
Enter Key in ASP.NET - Complete Research[^]


您想做这个客户端,请看一下:
将事件处理程序绑定到"keypress" JavaScript事件,或在元素上触发该事件 [将事件处理程序绑定到"focus" JavaScript事件,或在元素上触发该事件. [ ^ ]移动焦点.

最好的问候
Espen Harlinn
You''ll like to do this client side, take a look at:
Bind an event handler to the "keypress" JavaScript event, or trigger that event on an element[^]

You can use Bind an event handler to the "focus" JavaScript event, or trigger that event on an element.[^] to move the focus.

Best regards
Espen Harlinn


这篇关于在ASP.net中捕获Enter键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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