Please check the answer
Answer to - “DropDownList.SelectedIndex = -1” problem
[
^]
Where it says to insert that value after the dropdown is bound...
In your codes do like below...
SqlCommand cmd = new SqlCommand("select ID from login order by ID",con);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds);
DropDownList1.DataSource = ds;
DropDownList1.DataTextField = "id";
DropDownList1.DataBind();
DropDownList1.Items.Insert(0, new ListItem("--Select One--", ""));
Try using this and let me know...
Thanks...