下拉列表选择IndexChange [英] Drop down list Select IndexChange

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

问题描述

如果我从下拉列表中选择任何值,那么会有一个下拉列表和两个文本框,那么应该动态更改文本框的值?您能提供给我解决方案吗?

There is one dropdownlist and two textboxes if i select any value from dropdownlist then dynamically textbox value should be change?can you provide me solution

推荐答案

?

(if = dropdownlist.selectedvalue ==")
{
textbox.text =";

}
Do you main?

(if=dropdownlist.selectedvalue=="")
{
textbox.text= " ";

}



将下拉列表的AutoPostback属性设置为True.

然后在dropdownlist的selectedindex_changed事件中编写您的代码.
问候,
朋友.
Hi,
Set dropdownlist AutoPostback property to True.

Then write Your Code in selectedindex_changed event of dropdownlist ..

Regards,
Pal.


sunil,

只需在我们的codeproject网站上查看以下链接.

下拉列表选择IndexChange

练习更多...
Hi sunil,

Just see the following link in our codeproject website.

Drop down list Select IndexChange

Practice more...
Ok


这篇关于下拉列表选择IndexChange的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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