ASP.NET中的Textbox_keydown事件 [英] Textbox_keydown event in ASP.NET
本文介绍了ASP.NET中的Textbox_keydown事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨..请帮助我..
我在Windows应用程序中使用textbox1_keydown事件,将代码编写如下:
Hi..please help me..
I am using the textbox1_keydown event in windows application, written the code like below...
private void txtBarcode_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyData == Keys.Enter)
{
function1();
function2();
}
}
我必须在c#,即
的asp.net中使用相同的内容
我必须在asp.net中使用keydown事件..我不知道如何使用..
plaese做needfull....
在此先感谢.........
the same thing i have to use in asp.net in c#,i.e,
i have to use keydown event in asp.net..i don''t know how to use..
plaese do the needfull....
thanks in advance.........
推荐答案
只需捕获Enter,就可以使用DefaultButton
.
该线程将为您提供帮助.
http://forums.asp.net/t/1288379.aspx [
Just to capture Enter, you can useDefaultButton
.
This thread will help you.
http://forums.asp.net/t/1288379.aspx[^]
您可以研究这些链接
最好的问候,
Theingi Win
You can study these link
Best Regards,
Theingi Win
您始终可以使用Javascript的onKeyUp/onKeyDown函数.
You can always use the Javascript side onKeyUp / onKeyDown functions.
这篇关于ASP.NET中的Textbox_keydown事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文