private void BindStandardsContentPages()
        {
            BPContent bp = new BPContent();
            BEContent ds = null;

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

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

            rptStandardsPages.DataSource = ds.tbl_Content.DefaultView;
            rptStandardsPages.DataBind();
        }
Example #2
0
        private void BindFAQNav()
        {
            int contentTypeID = Convert.ToInt32(ContentTypes.FAQ);
            if (contentTypeID > 0)
            {
                BPContent bp = new BPContent();
                BEContent ds = bp.SelectActiveFRByContentTypeID(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;
            }
        }
Example #3
0
        private void BindAboutUsNav()
        {
            int contentTypeID = Convert.ToInt32(ContentTypes.AboutUs);
            if (contentTypeID > 0)
            {
                BPContent bp = new BPContent();
                BEContent ds = bp.SelectActiveFRByContentTypeID(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 = "";
                }


                //BindFAQNav();

                //if ((rptAboutUs.Items.Count > 0 || rptFAQ.Items.Count > 0))
                //    plcAboutUsDynamicNav.Visible = true;
                //else
                //{
                //    plcAboutUsDynamicNav.Visible = false;
                //    lnkAboutUs.NavigateUrl = "";
                //}
            }
        }
Example #4
0
        private void BindListingsInfo()
        {
            BPContent bp = new BPContent();
            BEContent ds = null;

            ds = bp.SelectActiveFRByContentTypeID(SubTypeID);

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

            rptListings.DataSource = ds.tbl_Content.DefaultView;
            rptListings.DataBind();
        }
Example #5
0
        private void BindNewsPagesNav()
        {
            int contentTypeID = Convert.ToInt32(ContentTypes.News);
            if (contentTypeID > 0)
            {
                BPContent bp = new BPContent();
                BEContent ds = bp.SelectActiveFRByContentTypeID(contentTypeID);

                if (ds.tbl_Content.Count > 0)
                {
                    ds.tbl_Content.DefaultView.Sort = "ContentOrder";
                    rptNewsPages.DataSource = ds.tbl_Content.DefaultView;
                    rptNewsPages.DataBind();
                }
            }
        }
Example #6
0
        private void BindStandardsContentPages()
        {
            int contentTypeID = Convert.ToInt32(ContentTypes.Standards);
            if (contentTypeID > 0)
            {
                BPContent bp = new BPContent();
                BEContent ds = bp.SelectActiveFRByContentTypeID(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();
                }
            }
        }