我有三个下拉列表,它们都加载在同一个函数中。如何使DropDrop2和dropdown 3变灰?如果在DropDrop1上做了特定的选择,我希望它们被激活。
发布于 2011-10-21 21:40:03
如果我理解你的问题的话。在你的第一个dropdownlist上创建AutoPostBack="True"。然后在
protected void DropdownlistSelectedIndexChanged(object sender, EventArgs e)
{
//get the selected item
var item = Dropdownlist.SelectedItem.ToString();
// depending on the item you can grey the other dropdowns
}https://stackoverflow.com/questions/7850086
复制相似问题