private void loadDropDownList() { BsnClsCategory bsn_Categoria = new BsnClsCategory(); ddlCategory.DataSource = bsn_Categoria.listCategory(); ddlCategory.DataValueField = "id"; ddlCategory.DataTextField = "name"; ddlCategory.DataBind(); }
private void loadDropDownList() { BsnClsCategory bsn_Category = new BsnClsCategory(); ddlCategory.DataSource = bsn_Category.listCategory(); ddlCategory.DataValueField = "id"; ddlCategory.DataTextField = "name"; ddlCategory.DataBind(); List <string> state = new List <string>(); state.Add("Disponible"); state.Add("No Disponible"); ddlState.DataSource = state; ddlState.DataBind(); }