使用vb.net捕获网页上文本框的按键 [英] trap the key press of a textbox on a webpage using vb.net

查看:72
本文介绍了使用vb.net捕获网页上文本框的按键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个 网页上的文本框。 我使用的是vb.net4。 当用户在此框中输入数据并点击进入时,我想捕获文本框的按键事件并调用相关按钮点击 处理此正常交易的事件。 
例如,用户键入"Brown"。进入文本框并点击进入,然后我想调用按钮名称"buttonColor"的点击事件。

I have a  textbox on a webpage.  I am using vb.net4.  When the user enters data into this box and hits enter, I would like to trap the key press event of the textbox and call the related button click  event that handles this normal transactions.  For example, the user types "Brown" into the textbox and hits enter and I would like to then call the click event of a button name "buttonColor".

谢谢你提前。

此致

蓝色

BLUE GOULDING

BLUE GOULDING

推荐答案

如果您使用ASP.net开发了一个Web应用程序,那么正确的论坛是http://forums.asp.net。
If you developed a web application using ASP.net, the correct forum is http://forums.asp.net.


这篇关于使用vb.net捕获网页上文本框的按键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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