private void BindData() { ForumGroup forumGroup = ForumManager.GetForumGroupByID(this.ForumGroupID); if (forumGroup != null) { hlForumGroup.NavigateUrl = SEOHelper.GetForumGroupURL(forumGroup); hlForumGroup.Text = Server.HtmlEncode(forumGroup.Name); } rptrForumList.DataSource = forumGroup.Forums; rptrForumList.DataBind(); }
public void BindData() { hlHome.NavigateUrl = CommonHelper.GetStoreLocation(); hlForumsHome.NavigateUrl = SEOHelper.GetForumMainURL(); //topic ForumTopic forumTopic = ForumManager.GetTopicByID(this.ForumTopicID); if (forumTopic != null) { hlForumTopic.NavigateUrl = SEOHelper.GetForumTopicURL(forumTopic.ForumTopicID); hlForumTopic.Text = Server.HtmlEncode(forumTopic.Subject); } else { phForumTopic.Visible = false; } //forum Forum forum = null; if (forumTopic != null) { forum = ForumManager.GetForumByID(forumTopic.ForumID); } else { forum = ForumManager.GetForumByID(this.ForumID); } if (forum != null) { hlForum.NavigateUrl = SEOHelper.GetForumURL(forum); hlForum.Text = Server.HtmlEncode(forum.Name); } else { phForum.Visible = false; } //forum group ForumGroup forumGroup = null; if (forum != null) { forumGroup = ForumManager.GetForumGroupByID(forum.ForumGroupID); } else { forumGroup = ForumManager.GetForumGroupByID(this.ForumGroupID); } if (forumGroup != null) { hlForumGroup.NavigateUrl = SEOHelper.GetForumGroupURL(forumGroup); hlForumGroup.Text = Server.HtmlEncode(forumGroup.Name); } else { phForumTopic.Visible = false; } }