TextBox失去重点 [英] TextBox Loses Its focus

查看:89
本文介绍了TextBox失去重点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

:doh::doh:

当文本框失去焦点时,如何根据文本框值自动填充值??

我想要使​​用VB在ASP.Net 2.0中解决方案.

:doh: :doh:

How to get values filled automatically according to the textbox value, when the textbox loses its focus???

I want solution in ASP.Net 2.0 using VB.

推荐答案

您的问题根本不清楚.
如果您的文本框名为txt1,则设置txt1.text ="text".
我不知道这与焦点有什么关系.
Your question is not at all clear.

If your textbox is called txt1, then set txt1.text = "text".
I dont know what does this have to do with the focus.


由于您说的是ASP.NET,请尝试使用第一个文本框onblurr onchange onfocusout 事件来获得所需的结果改变.在这种情况下,请在textbox2中写入所需的值.使用,选择VBScript或JavaScript.
Since you say ASP.NET, try 1st textbox onblurr or onchange or onfocusout events to make the desired change. In that event, write the value you need to in textbox2. Use, VBScript or JavaScript your choice.


这篇关于TextBox失去重点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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