HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/RMourik/bassol.nl/CMS/CMSModules/Forums/Tools/Forums/Forum_List.aspx.cs
using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using CMS.Helpers;
using CMS.PortalEngine;
using CMS.UIControls;

[Action(0, "Forum_List.NewItemCaption", "Forum_New.aspx?groupId={?parentobjectid?}")]
public partial class CMSModules_Forums_Tools_Forums_Forum_List : CMSForumsPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        int groupId = QueryHelper.GetInteger("parentobjectid", 0);

        forumList.GroupID = groupId;
        forumList.OnAction += new CommandEventHandler(forumList_OnAction);
        forumList.IsLiveSite = false;

        InitializeMasterPage(groupId);
    }


    protected void forumList_OnAction(object sender, CommandEventArgs e)
    {
        switch (e.CommandName.ToString())
        {
            case "edit":
                URLHelper.Redirect(URLHelper.AddParameterToUrl(UIContextHelper.GetElementUrl("cms.forums","EditForum"), "forumid" , e.CommandArgument.ToString()));
                break;
            default:
                forumList.ReloadData();
                break;
        }
    }


    /// <summary>
    /// Initializes Master Page.
    /// </summary>
    protected void InitializeMasterPage(int groupId)
    {
        // Set title
        Title = "Forum List";
    }
}