填写文本框文本更改列表框 [英] Fill list box on the text change of textbox

查看:128
本文介绍了填写文本框文本更改列表框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨先生/ Ma''am





我使用asp.net和vb作为语言。

先生,我想在文本框的文本更改事件的列表框中添加项目文本。

我已经在vb.net中完成了但是使用asp.net工作没有完成文字更改活动。



请帮我解决这个问题。









i想添加如此类似当我在文本框中写anku然后所有名称都有字符串anku填充在文本框文本列表框中更改值自动更改列表框根据文本框字符串



我在vb.net中做,但在asp.net上做文本更改列表框值不受影响

解决方案

第1步:

在相应文本控件的.aspx页面中写入TextChanged =FunNsme。



FunName: - 您将在第2步中创建的功能名称。



第2步:
通过从页面顶部选择控件和事件,在aspx.vb上创建一个文本更改事件。



为函数添加语句。



第3步:

在页面加载事件中添加以下代码f .aspx.vb



txtName.Attributes.Add(TextChanged)



txtName是TextBox的名称。

Hi sir/Ma''am


I am using asp.net with vb as language.
Sir i want to add item text in list box on the text change event of text box.
I am already done it in vb.net but with asp.net the working is not done on text change event .

Please help me regarding this.




i want to add such like when i write anku in text box then all the name having string anku populate in the listbox on textbox text change the values automatically change in the list box according to text box string

I do it in vb.net but in asp.net on doing text change the list box values not effected

解决方案

Step 1:
Write TextChanged="FunNsme" in your .aspx page in respective Text Control.

FunName :- Function name which you will make in Step 2.

Step 2:
Make a text Change event on aspx.vb by selecting control and event from top of the page.

Add statements to your function.

Step 3:
Add the Following code in your Page load event f .aspx.vb

txtName.Attributes.Add("TextChanged")

txtName is a Name of your TextBox.


这篇关于填写文本框文本更改列表框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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