private void BindTyreCategory() { BindDropdownDAL obj = new BindDropdownDAL(); ddlType.DataSource = obj.BindTyreType(); ddlType.DataTextField = "TyreType"; ddlType.DataValueField = "TyreTypeIdno"; ddlType.DataBind(); ddlType.Items.Insert(0, new System.Web.UI.WebControls.ListItem("--Select Type--", "0")); obj = null; }
private void BindTyreCategory() { BindDropdownDAL objBindDropdown = new BindDropdownDAL(); var TyreCategory = objBindDropdown.BindTyreType(); objBindDropdown = null; ddlTyreType.DataSource = TyreCategory; ddlTyreType.DataTextField = "TyreType"; ddlTyreType.DataValueField = "TyreTypeIdno"; ddlTyreType.DataBind(); ddlTyreType.Items.Insert(0, new System.Web.UI.WebControls.ListItem("All", "0")); }