标签:
Category.DataSource = b_ProductType.GetAllList().Tables[0];
Category.DataTextField = "TypeName";
Category.DataValueField = "ID";
Category.DataBind();
Category.Items.Insert(0, new ListItem("-请选择-", ""));
//Category.Items.FindByText("-请选择-").Selected = true;
Category.SelectedValue = "-请选择-";(两个效果都一样)
标签:
原文地址:http://www.cnblogs.com/anyben/p/4380607.html