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 = ""; } } }
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(); }
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; } }
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 = ""; } }
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(); } }
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(); }
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 = ""; } }
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(); } } }
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(); } } }