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

            if (fp.Count > 0)
            {
                rpProduct.DataSource = fp;
                rpProduct.DataBind();
            }
        }
 public void fillCategory()
 {
     try
     {
         List <CategoryMaster> _state = CategoryMasterCollection.GetAll();
         CategoryMaster        sm     = new CategoryMaster();
         sm.CATEGORY_ID   = 0;
         sm.CATEGORY_NAME = "-select Category-";
         _state.Insert(0, sm);
         dropCategory.DataSource     = _state;
         dropCategory.DataTextField  = "CATEGORY_NAME";
         dropCategory.DataValueField = "CATEGORY_ID";
         dropCategory.DataBind();
     }
     catch (Exception ex)
     {
         string script = "<script>alert('" + ex.Message + "');</script>";
     }
 }
 public void grid()
 {
     gdvNotice.DataSource = CategoryMasterCollection.GetAll();
     gdvNotice.DataBind();
 }