예제 #1
0
        private void BindItemType()
        {
            ItemMastPurDAL objItemMast = new ItemMastPurDAL();
            var            lst         = objItemMast.SelectItemType();

            ddlItemType.DataSource     = lst;
            ddlItemType.DataTextField  = "ItemType_Name";
            ddlItemType.DataValueField = "ItemTpye_Idno";
            ddlItemType.DataBind();
            objItemMast = null;
            ddlItemType.Items.Insert(0, new ListItem("-- Select Item Type --", "0"));
        }
예제 #2
0
        private void BindItemType()
        {
            ItemMastPurDAL objItemMast = new ItemMastPurDAL();
            var            lst         = objItemMast.SelectItemType();

            ddlAddType.DataSource     = lst;
            ddlAddType.DataTextField  = "ItemType_Name";
            ddlAddType.DataValueField = "ItemTpye_Idno";
            ddlAddType.DataBind();

            ddlItemGropForPopup.DataSource     = lst;
            ddlItemGropForPopup.DataTextField  = "ItemType_Name";
            ddlItemGropForPopup.DataValueField = "ItemTpye_Idno";
            ddlItemGropForPopup.DataBind();

            objItemMast = null;
        }