private void BindTyreName() { BindDropdownDAL obj = new BindDropdownDAL(); var itemname = obj.SelectOnlyTyre(); obj = null; if (itemname != null && itemname.Count > 0) { ddlItemName.DataSource = itemname; ddlItemName.DataTextField = "Item_Name"; ddlItemName.DataValueField = "Item_idno"; ddlItemName.DataBind(); } ddlItemName.Items.Insert(0, new System.Web.UI.WebControls.ListItem("--Select--", "0")); }