コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Utility.RegisterTypeForAjax(GetType());

            _settings     = Community.Forum.ForumManager.Settings;
            _forumManager = _settings.ForumManager;

            TopicCSSClass = IsEven ? "tintMedium" : "";

            if (!Topic.IsApproved &&
                _forumManager.ValidateAccessSecurityAction(ForumAction.ApprovePost, Topic))
            {
                TopicCSSClass = "tintDangerous";
            }

            _imageURL = _forumManager.GetTopicImage(Topic);

            _tagsPanel.Visible     = (Topic.Tags != null && Topic.Tags.Count > 0);
            tagRepeater.DataSource = Topic.Tags;
            tagRepeater.DataBind();
        }