예제 #1
0
    /// <summary>
    /// OnPrerender override.
    /// </summary>
    /// <param name="e">EventArgs</param>
    protected override void OnPreRender(EventArgs e)
    {
        if (ValidationHelper.GetBoolean(mThreadMove.GetValue("TopicMoved"), false))
        {
            ltlScript.Text              += ScriptHelper.GetScript("if(parent){ parent.location = parent.location} else {location = location}");
            pnlContent.Visible           = false;
            pnlAttachmentContent.Visible = false;
            pnlAttachmentTitle.Visible   = false;
        }

        base.OnPreRender(e);
    }
예제 #2
0
    /// <summary>
    /// OnPrerender override.
    /// </summary>
    /// <param name="e">EventArgs</param>
    protected override void OnPreRender(EventArgs e)
    {
        if (ValidationHelper.GetBoolean(ThreadMove1.GetValue("TopicMoved"), false))
        {
            ltlScript.Text              += ScriptHelper.GetScript("parent.frames['posts_tree'].location.href = 'ForumPost_Tree.aspx?forumid=" + PostInfo.PostForumID + "';");
            pnlContent.Visible           = false;
            pnlAttachmentContent.Visible = false;
            pnlAttachmentTitle.Visible   = false;
        }

        base.OnPreRender(e);
    }