public void FIllAllProduct()
        {
            _subCategorys = SubCategoryMasterCollection.GetAll();
            List <CategoryMaster> fp = CategoryMasterCollection.GetAll();

            if (fp.Count > 0)
            {
                rpProduct.DataSource = fp;
                rpProduct.DataBind();
            }
        }
Exemplo n.º 2
0
 public void fillSubCategory()
 {
     try
     {
         List <SubCategoryMaster> _state = SubCategoryMasterCollection.GetAll().Where(x => x.Category_ID == int.Parse(dropCategory.SelectedValue.ToString())).OrderBy(x => x.SubCategory_NAME).ToList();
         SubCategoryMaster        sm     = new SubCategoryMaster();
         sm.SubCategory_ID   = 0;
         sm.SubCategory_NAME = "-select Sub Category-";
         _state.Insert(0, sm);
         dropSubCate.DataSource     = _state;
         dropSubCate.DataTextField  = "SubCategory_NAME";
         dropSubCate.DataValueField = "SubCategory_ID";
         dropSubCate.DataBind();
     }
     catch (Exception ex)
     {
         string script = "<script>alert('" + ex.Message + "');</script>";
     }
 }
 public void grid()
 {
     gdvNotice.DataSource = SubCategoryMasterCollection.GetAll();
     gdvNotice.DataBind();
 }