Example #1
0
        private void BindTitle()
        {
            BPNewsTypes bp = new BPNewsTypes();
            DSNews = bp.SelectNewsTypeByID(SubTypeID);

            if (DSNews.tbl_NewsTypes.Count > 0)
            {
                BENews.tbl_NewsTypesRow typeRow = DSNews.tbl_NewsTypes[0];
                lblTitle.Text = "Browse " + typeRow.NewsTypeName + "s";
                btnAdd.Text = "Add New";
            }
        }
Example #2
0
        private void GetSubTypeName()
        {
            BPNewsTypes bp = new BPNewsTypes();
            BENews dsSubTypes = bp.SelectNewsTypeByID(SubTypeID);

            if (dsSubTypes.tbl_NewsTypes.Count > 0)
            {
                BENews.tbl_NewsTypesRow type = dsSubTypes.tbl_NewsTypes[0];
                SubTypeName = type.NewsTypeName;
            }
        }