Ejemplo n.º 1
0
        private void BindAboutUsNav()
        {
            int contentTypeID = Convert.ToInt32(ContentTypes.AboutUs);
            if (contentTypeID > 0)
            {
                BPContent bp = new BPContent();
                BEContent ds = bp.SelectActiveByContentTypeID(contentTypeID);

                if (ds.tbl_Content.Count > 0)
                {
                    ds.tbl_Content.DefaultView.Sort = "ContentOrder";
                    rptAboutUs.DataSource = ds.tbl_Content.DefaultView;
                    rptAboutUs.DataBind();
                }
                BindOrgOfCOPRNav();
                BindStrategicPlanNav();
                BindFAQNav();

                if ((rptAboutUs.Items.Count > 0 || rptFAQ.Items.Count > 0) || rptOrgOfCOPR.Items.Count > 0 || rptStrategicPlan.Items.Count > 0)
                    plcAboutUsDynamicNav.Visible = true;
                else
                {
                    plcAboutUsDynamicNav.Visible = false;
                    lnkAboutUs.NavigateUrl = "";
                }
            }
        }
Ejemplo n.º 2
0
        private void BindStandardsContentPages()
        {
            BPContent bp = new BPContent();
            BEContent ds = null;

            ds = bp.SelectActiveByContentTypeID(Convert.ToInt32(ContentTypes.Standards));

            ds.tbl_Content.DefaultView.Sort = ds.tbl_Content.ContentOrderColumn.ColumnName;

            rptStandardsPages.DataSource = ds.tbl_Content.DefaultView;
            rptStandardsPages.DataBind();
        }
Ejemplo n.º 3
0
        private void BindOrgOfCOPRNav()
        {
            int contentTypeID = Convert.ToInt32(ContentTypes.OrgOfCOPR);
            if (contentTypeID > 0)
            {
                BPContent bp = new BPContent();
                BEContent ds = bp.SelectActiveByContentTypeID(contentTypeID);

                if (ds.tbl_Content.Count > 0)
                {
                    ds.tbl_Content.DefaultView.Sort = "ContentOrder";
                    rptOrgOfCOPR.DataSource = ds.tbl_Content.DefaultView;
                    rptOrgOfCOPR.DataBind();
                }
                else
                    lnkOrgOfCOPR.Visible = false;
            }
        }
Ejemplo n.º 4
0
        private void BindFAQNav()
        {
            int contentTypeID = Convert.ToInt32(ContentTypes.FAQ);
            if (contentTypeID > 0)
            {
                BPContent bp = new BPContent();
                BEContent ds = bp.SelectActiveByContentTypeID(contentTypeID);

                if (ds.tbl_Content.Count > 0)
                {
                    ds.tbl_Content.DefaultView.Sort = "ContentOrder";
                    rptFAQ.DataSource = ds.tbl_Content.DefaultView;
                    rptFAQ.DataBind();
                }
                else
                    lnkFAQ.Visible = false;
                //lnkFAQ.NavigateUrl = "";
            }
        }
Ejemplo n.º 5
0
        private void BindAboutUsNav()
        {
            int contentTypeID = Convert.ToInt32(ContentTypes.AboutUs);
            if (contentTypeID > 0)
            {
                BPContent bp = new BPContent();
                BEContent ds = bp.SelectActiveByContentTypeID(contentTypeID);

                if (ds.tbl_Content.Count > 0)
                {
                    ds.tbl_Content.DefaultView.Sort = "ContentOrder";
                    rptAboutUs.DataSource = ds.tbl_Content.DefaultView;
                    rptAboutUs.DataBind();
                }
                else
                {
                    lnkAboutUs.NavigateUrl = "";
                }
                BindOrgOfCOPRNav();
                BindStrategicPlanNav();
            }
        }
Ejemplo n.º 6
0
        private void BindListingsInfo()
        {
            BPContent bp = new BPContent();
            BEContent ds = null;

            ds = bp.SelectActiveByContentTypeID(SubTypeID);

            ds.tbl_Content.DefaultView.Sort = ds.tbl_Content.ContentOrderColumn.ColumnName;

            rptListings.DataSource = ds.tbl_Content.DefaultView;
            rptListings.DataBind();
        }
Ejemplo n.º 7
0
        private void BindNewsPagesNav()
        {
            int contentTypeID = Convert.ToInt32(ContentTypes.News);
            if (contentTypeID > 0)
            {
                BPContent bp = new BPContent();
                BEContent ds = bp.SelectActiveByContentTypeID(contentTypeID);

                if (ds.tbl_Content.Count > 0)
                {
                    ds.tbl_Content.DefaultView.Sort = "ContentOrder";
                    rptNewsPages.DataSource = ds.tbl_Content.DefaultView;
                    rptNewsPages.DataBind();
                }
                //else
                //lnkFAQ.NavigateUrl = "";
            }
        }
Ejemplo n.º 8
0
        private void BindStandardsContentPages()
        {
            int contentTypeID = Convert.ToInt32(ContentTypes.Standards);
            if (contentTypeID > 0)
            {
                BPContent bp = new BPContent();
                BEContent ds = bp.SelectActiveByContentTypeID(contentTypeID);

                if (ds.tbl_Content.Count > 0)
                {
                    ds.tbl_Content.DefaultView.Sort = ds.tbl_Content.ContentOrderColumn.ColumnName;
                    rptStandardsContentPages.DataSource = ds.tbl_Content.DefaultView;
                    rptStandardsContentPages.DataBind();
                }
            }
        }
Ejemplo n.º 9
0
        private void BindArchivePagesNav()
        {
            int contentTypeID = Convert.ToInt32(ContentTypes.Archive);
            if (contentTypeID > 0)
            {
                BPContent bp = new BPContent();
                BEContent ds = bp.SelectActiveByContentTypeID(contentTypeID);

                if (ds.tbl_Content.Count > 0)
                {
                    ds.tbl_Content.DefaultView.Sort = "ContentOrder";
                    rptArchivePages.DataSource = ds.tbl_Content.DefaultView;
                    rptArchivePages.DataBind();
                }
            }
        }