禁用或启用对下拉列表项目选择的控制. [英] disable or enable controls on the selection of item of dropdownlist.

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

问题描述

先生,
我正在研究一个项目.我想从下拉列表中选择一项而不是其他控件时,并且从下拉列表中选择另一项而不是那些控件启用时.
请给我建议.














谢谢您,

hi sir,
i am working on a project.i want when i select the one item from dropdownlist than other control disble and when i select another item from dropdownlist than those controls enable.
plz give me suggestion.














Thank you,

推荐答案

DropDownList中将AutoPostback设置为true.在后面的代码中,您可以编写代码以在SelectedIndexChanged中启用或禁用.
Set the AutoPostback to true in your DropDownList. On code behind you can write your code to enable or disable in SelectedIndexChanged.


您好,
遵循下面的线程并相应地实现
http://www.dreamincode.net/forums/topic /219862-enabling-a-control-when-dropdown-index-changed/ [
Hi,
follow the thread below and implement accordingly
http://www.dreamincode.net/forums/topic/219862-enabling-a-control-when-dropdown-index-changed/[^]


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

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