大家好,又见面了,我是你们的朋友全栈君。
DropDownList1 添加一个默认选中项
DropDownList1.DataSource = bb.drop();
DropDownList1.DataTextField = "BookType";
DropDownList1.DataValueField = "BookTypeid";
DropDownList1.DataBind();
DropDownList1.Items.Insert(0,new ListItem("全部","0"));
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/161270.html原文链接:https://javaforall.cn