protected void BindData()
        {
            var forum = this.ForumService.GetForumById(this.ForumId);

            if (forum != null)
            {
                //hlNewTopic.Visible = this.ForumService.IsUserAllowedToCreateTopic(NopContext.Current.User, forum);

                lblForumName.Text        = Server.HtmlEncode(forum.Name);
                lblForumDescription.Text = Server.HtmlEncode(forum.Description);

                hlNewTopic.NavigateUrl = SEOHelper.GetNewForumTopicUrl(forum.ForumId);

                int pageSize = 10;
                if (this.ForumService.TopicsPageSize > 0)
                {
                    pageSize = this.ForumService.TopicsPageSize;
                }

                var forumTopics = this.ForumService.GetAllTopics(forum.ForumId, 0, string.Empty,
                                                                 ForumSearchTypeEnum.All, 0, this.CurrentPageIndex, pageSize);
                if (forumTopics.Count > 0)
                {
                    this.topicsPager1.PageSize     = pageSize;
                    this.topicsPager1.TotalRecords = forumTopics.TotalCount;
                    this.topicsPager1.PageIndex    = this.CurrentPageIndex;

                    this.topicsPager2.PageSize     = pageSize;
                    this.topicsPager2.TotalRecords = forumTopics.TotalCount;
                    this.topicsPager2.PageIndex    = this.CurrentPageIndex;

                    rptrTopics.DataSource = forumTopics;
                    rptrTopics.DataBind();
                }

                //subsciption
                if (this.ForumService.IsUserAllowedToSubscribe(NopContext.Current.User))
                {
                    var forumSubscription = this.ForumService.GetAllSubscriptions(NopContext.Current.User.CustomerId,
                                                                                  forum.ForumId, 0, 0, 1).FirstOrDefault();

                    if (forumSubscription == null)
                    {
                        btnWatchForum.Text = GetLocaleResourceString("Forum.WatchForum");
                    }
                    else
                    {
                        btnWatchForum.Text = GetLocaleResourceString("Forum.UnwatchForum");
                    }
                }
                else
                {
                    btnWatchForum.Visible = false;
                }
            }
            else
            {
                Response.Redirect(SEOHelper.GetForumMainUrl());
            }
        }