如果有人在下拉列表中选择了某个项目,如何禁用下拉列表? [英] How to disable a Dropdownlist once someone has selected an item in the Dropdownlist?
本文介绍了如果有人在下拉列表中选择了某个项目,如何禁用下拉列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果有人在下拉列表中选择了某个项目,如何禁用下拉列表?
How to disable a Dropdownlist once someone has selected an item in the Dropdownlist?
推荐答案
您是否尝试过使用j-query?
have u tried it using j-query?
On DropDownChange事件确实
Dropdownlist1.Enable = false;
并设置Autopostbackvalue = true;
On DropDownChange Event do
Dropdownlist1.Enable=false;
and set Autopostbackvalue=true;
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
DropDownList1.Enabled = false;
}
这篇关于如果有人在下拉列表中选择了某个项目,如何禁用下拉列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文