I am a new ASP.NET developer and I am trying to learn Linq-To-Entities. I am trying to bind a DropDownList with the Linq statement for retrieving the list of status in the S
Move DropDownList1.Items.Add(new ListItem("Select", "0", true)); After bindStatusDropDownList();
so:
if (!IsPostBack) { bindStatusDropDownList(); //first create structure DropDownList1.Items.Add(new ListItem("Select", "0", true)); // after add item }