Ejemplo n.º 1
0
        private void FillLCNoandOEntry()
        {
            BuyerBLL _BuyerBll = new BuyerBLL();
            string   BuyerType = ddlBuyerType.SelectedValue.ToString();
            List <Com_Buyer_Setup> _buyerlist = _BuyerBll.GetBuyerByType(BuyerType);

            if (_buyerlist.Count > 0)
            {
                ddlBuyerName.DataSource     = _buyerlist.ToList();
                ddlBuyerName.DataTextField  = "Buyer_Name";
                ddlBuyerName.DataValueField = "Buyer_ID";
                ddlBuyerName.DataBind();
                ddlBuyerName.Items.Insert(0, new ListItem("---Select One---"));
            }
        }