0
嗨,我需要显示一个数据下拉列表,但禁用,我的问题,然后,尽管我设置了唯一的值,我需要在应用程序的开始时显示,当我设置启用虚假数据它已清楚,所以我需要知道如果退出的另一种方式来禁用下拉,但与数据。由于dropdownlist的值,但禁用
我的代码
protected void Page_Load(object sender, EventArgs e)
{
//Initialize the combo
Dictionary<int,String> estate = new Dictionary<int,String>();
estadosVenezuela.Add(0,"Pick a state");
DropDownList2.DataValueField = "Key";
DropDownList2.DataTextField = "Value";
DropDownList2.DataBind();
DropDownList2.Enabled = false;
}
我需要这些值选择一个状态出现的,但随着下拉列表残疾人
EstadosVenezuela是否被添加到DropDownList2?什么是EstadosVenezuela? – 2011-05-19 15:54:13