2
我在UpdatePanel_2下拉列表中,单击在UpdatePanel_1时Button_1它被填充,如何保持“选择”的项目[0]下拉列表
填充的DropDownList时,它会删除我的“选择”项不知道为什么,
我的下拉列表标记是,
<asp:DropDownList id="drop1" runat="server" >
<asp:ListItem Text=" Select " />
</asp:DropDownList>
这是怎么了填充它,
using (SqlDataSource sqlds = new SqlDataSource(ConnectionString(), SelectCommand()))
{
drop1.DataSource = sqlds;
drop1.DataTextField = "UserName";
drop1.DataBind();
}