ASP.NET中的Textbox_keydown事件

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 use DefaultButton.

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.