DropDownList.SelectedItem.Text= dr["FiledName"].ToString();
DropDownList.Items.Add(dr.GetString(0));
DropDownList1.SelectedIndex = DropDownList1.Items.IndexOf(DropDownList1.Items.FindByText(dr["FiledName"].ToString()));
if(DropDownList1.Items.FindByText(dr["FiledName"].ToString())!=null) { DropDownList1.Items.FindByText(dr["FiledName"].ToString()).Selected = true; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)