填写文本框文本更改列表框

编程入门 行业动态 更新时间:2024-10-25 00:36:29
本文介绍了填写文本框文本更改列表框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

嗨先生/ Ma''am 我使用asp和vb作为语言。 先生,我想在文本框的文本更改事件的列表框中添加项目文本。 我已经在vb中完成了但是使用asp工作没有完成文字更改活动。 请帮我解决这个问题。 i想添加如此类似当我在文本框中写anku然后所有名称都有字符串anku填充在文本框文本列表框中更改值自动更改列表框根据文本框字符串 我在vb中做,但在asp上做文本更改列表框值不受影响

解决方案

第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 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 but with asp 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 but in asp 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.

更多推荐

填写文本框文本更改列表框

本文发布于:2023-11-03 16:06:15,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文本框   文本   列表

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!