Beispiel #1
0
        private void FillTopddlCategory()
        {
            BATopCategory batcat      = new BATopCategory();
            DataTable     _datatable3 = new DataTable();

            _datatable3 = batcat.SelectTopCategoryList("GETALL");
            ddlTopCategory.DataTextField  = "TopCategoryName";
            ddlTopCategory.DataValueField = "TopCategoryID";
            ddlTopCategory.DataSource     = _datatable3;
            ddlTopCategory.DataBind();
            FillSecondddlCategory(ddlTopCategory.SelectedItem.Value);
        }
Beispiel #2
0
        private void FilldropDowntopCategory()
        {
            BATopCategory _batopcat = new BATopCategory();
            DataTable     _table    = new DataTable();

            _table = _batopcat.SelectTopCategoryList("GETALL");
            drpTopCategory.DataTextField  = "TopCategoryName";
            drpTopCategory.DataValueField = "TopCategoryID";
            drpTopCategory.DataSource     = _table;
            drpTopCategory.DataBind();
            FilldropDownSecondCategory(drpTopCategory.SelectedItem.Value);
        }
 private void Bind_TopCategoryCombo()
 {
     BOTopCategory _botopcat = new BOTopCategory();
     BATopCategory _batopcat = new BATopCategory();
     _botopcat.Event = "GETALL";
     List<BOTopCategory> TCateList = _batopcat.SelectTopCategoryList(_botopcat);
     if (TCateList.Count > 0)
     {
         cmbTopcat.DataSource = TCateList;
         cmbTopcat.DisplayMember = "TopCategoryName";
         cmbTopcat.ValueMember = "TopCategoryID";
     }
 }
        private void FilldropDowntopCategory()
        {
            BATopCategory _batopcat = new BATopCategory();

            _datatable = new DataTable();
            _datatable = _batopcat.SelectTopCategoryList("GETALL");
            if (_datatable.Rows.Count > 0)
            {
                drpTopcategory.DataTextField  = "TopCategoryName";
                drpTopcategory.DataValueField = "TopCategoryID";
                drpTopcategory.DataSource     = _datatable;
                drpTopcategory.DataBind();
            }
        }
Beispiel #5
0
        private DataTable FillddlTopCategory()
        {
            BATopCategory batcat      = new BATopCategory();
            DataTable     _datatable3 = new DataTable();

            if (ViewState["dtTopCat"] != null && !ViewState["dtTopCat"].Equals(""))
            {
                _datatable3 = (DataTable)ViewState["dtTopCat"];
            }
            else
            {
                _datatable3           = batcat.SelectTopCategoryList("GETALL");
                ViewState["dtTopCat"] = _datatable3;
            }
            return(_datatable3);
        }
Beispiel #6
0
        private void FillTopCategoryCombo()
        {
            BOTopCategory _botopcat = new BOTopCategory();
            BATopCategory _batopcat = new BATopCategory();

            _botopcat.Event = "GETALL";
            List <BOTopCategory> TCateList = _batopcat.SelectTopCategoryList(_botopcat);

            if (TCateList.Count > 0)
            {
                cmbTopcate.DataSource    = TCateList;
                cmbTopcate.DisplayMember = "TopCategoryName";
                cmbTopcate.ValueMember   = "TopCategoryID";
                FillSecondCategoryCombo("GetWithTopCatId", Convert.ToInt32(cmbTopcate.SelectedValue));
            }
        }