string[] Sizes = pro.Sizes.Split(',');
string[] Colors = pro.Colors.Split(',');
this.DropDownList1.Items.Insert(0, "Please Select Size");
this.DropDownList2.Items.Insert(0, "Please Select Color");
if (Sizes.Length < 0)
{
this.DropDownList1.Items.Add(pro.Sizes);
}
else
{
foreach (var item in Sizes)
{
this.DropDownList1.Items.Add(item.Trim()); }
} if (Colors.Length < 0)
{
this.DropDownList2.Items.Add(pro.Colors); }
else
{
foreach (var item in Colors)
{
this.DropDownList2.Items.Add(item.Trim());
}
}
这是绑定源码,在火狐可以获取选定值,在IE不能,请问为什么,谁有好的解决方法!!!急用!!.NET 火狐 IE8 DropDownList
string[] Colors = pro.Colors.Split(',');
this.DropDownList1.Items.Insert(0, "Please Select Size");
this.DropDownList2.Items.Insert(0, "Please Select Color");
if (Sizes.Length < 0)
{
this.DropDownList1.Items.Add(pro.Sizes);
}
else
{
foreach (var item in Sizes)
{
this.DropDownList1.Items.Add(item.Trim()); }
} if (Colors.Length < 0)
{
this.DropDownList2.Items.Add(pro.Colors); }
else
{
foreach (var item in Colors)
{
this.DropDownList2.Items.Add(item.Trim());
}
}
这是绑定源码,在火狐可以获取选定值,在IE不能,请问为什么,谁有好的解决方法!!!急用!!.NET 火狐 IE8 DropDownList
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货