private void LoadBuyingDepartmentList() { string Ocode = Convert.ToString(((SessionUser)Session["SessionUser"]).OCode); List <LC_BuyerDepartment> List = _Buyerbll.GetBuyerDepartmentList(Ocode); if (List.Count > 0) { ddlBuyingDepartment.DataSource = List.ToList(); ddlBuyingDepartment.DataTextField = "BuyerDepartment_Name"; ddlBuyingDepartment.DataValueField = "BuyerDepartment_Id"; ddlBuyingDepartment.DataBind(); ddlBuyingDepartment.Items.Insert(0, new ListItem("---Select One---")); } }