private void loadDropDownList()
        {
            BsnClsCategory bsn_Categoria = new BsnClsCategory();

            ddlCategory.DataSource     = bsn_Categoria.listCategory();
            ddlCategory.DataValueField = "id";
            ddlCategory.DataTextField  = "name";
            ddlCategory.DataBind();
        }
示例#2
0
        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();
        }