/// <summary>
        /// Binds the data.
        /// </summary>
        private void BindData()
        {
            try
            {
                var yafUserId = this.GetYafUserId();

                Data.ActiveAccessUser(this.boardId, yafUserId, HttpContext.Current.User.Identity.IsAuthenticated);

                var activeTopics = Data.TopicLatest(this.boardId, this.maxPosts, yafUserId, false, true);

                this.LatestPosts.DataSource = activeTopics;
                this.LatestPosts.DataBind();

                if (activeTopics.Rows.Count <= 0)
                {
                    this.lInfo.Text = Localization.GetString("NoMessages.Text", this.LocalResourceFile);
                    this.lInfo.Style.Add("font-style", "italic");
                }
                else
                {
                    this.lInfo.Text = string.Empty;
                }
            }
            catch (Exception exc)
            {
                // Module failed to load
                Exceptions.ProcessModuleLoadException(this, exc);
            }
        }
        /// <summary>
        /// Binds the data.
        /// </summary>
        private void BindData()
        {
            try
            {
                var yafUserId = this.GetYafUserId();

                Data.ActiveAccessUser(this.boardId, yafUserId, HttpContext.Current.User.Identity.IsAuthenticated);

                var activeTopics = Data.TopicLatest(this.boardId, this.maxPosts, yafUserId, false, true);

                // Resort the table
                switch (this.sortOrder)
                {
                case "views":
                    activeTopics.DefaultView.Sort = "Views DESC";
                    break;

                case "replies":
                    activeTopics.DefaultView.Sort = "NumPosts DESC";
                    break;

                case "lastpost":
                    activeTopics.DefaultView.Sort = "LastPosted DESC";
                    break;

                default:
                    activeTopics.DefaultView.Sort = "LastPosted DESC";
                    break;
                }

                this.LatestPosts.DataSource = activeTopics;
                this.LatestPosts.DataBind();

                if (activeTopics.Rows.Count <= 0)
                {
                    this.lInfo.Text = Localization.GetString("NoMessages.Text", this.LocalResourceFile);
                    this.lInfo.Style.Add("font-style", "italic");
                    this.lInfo.Visible = true;
                }
                else
                {
                    this.lInfo.Visible = false;
                }
            }
            catch (Exception exc)
            {
                // Module failed to load
                Exceptions.ProcessModuleLoadException(this, exc);
            }
        }