private void getcatgs()
        {
            try
            {
                IAdmin    getCats = new AdminItems();
                DataTable catgDt  = getCats.getCatagories();

                CatagoryDDL.DataSource     = catgDt;
                CatagoryDDL.DataTextField  = "CategoryName";
                CatagoryDDL.DataValueField = "CategoryId";
                CatagoryDDL.DataBind();

                grpCatDDL.DataSource     = catgDt;
                grpCatDDL.DataTextField  = "CategoryName";
                grpCatDDL.DataValueField = "CategoryId";
                grpCatDDL.DataBind();

                ddl_Catagory.DataSource     = catgDt;
                ddl_Catagory.DataTextField  = "CategoryName";
                ddl_Catagory.DataValueField = "CategoryId";
                ddl_Catagory.DataBind();


                ddlCatagoryMer.DataSource     = catgDt;
                ddlCatagoryMer.DataTextField  = "CategoryName";
                ddlCatagoryMer.DataValueField = "CategoryId";
                ddlCatagoryMer.DataBind();
            }
            catch (Exception cExp)
            {
                ItemMessageLbl.Text = HardCodedValues.BuddaResource.CatchBlockError + cExp.Message;
            }
        }
        protected void getcatgs()
        {
            try
            {
                IAdmin    getCats = new AdminItems();
                DataTable catgDt  = getCats.getCatagories();

                ddl_catagory.DataSource     = catgDt;
                ddl_catagory.DataTextField  = "CategoryName";
                ddl_catagory.DataValueField = "CategoryId";
                ddl_catagory.DataBind();
            }
            catch (Exception cExp)
            {
                throw cExp;
            }
        }
Beispiel #3
0
        protected void getcatgs()
        {
            try
            {
                IAdmin    getCats = new AdminItems();
                DataTable catgDt  = getCats.getCatagories();

                CatagoryDDL.DataSource     = catgDt;
                CatagoryDDL.DataTextField  = "CategoryName";
                CatagoryDDL.DataValueField = "CategoryId";
                CatagoryDDL.DataBind();

                grpCatDDL.DataSource     = catgDt;
                grpCatDDL.DataTextField  = "CategoryName";
                grpCatDDL.DataValueField = "CategoryId";
                grpCatDDL.DataBind();
            }
            catch (Exception cExp)
            {
                ItemMessageLbl.Text = "Error occured" + cExp.Message;
            }
        }