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/wwwroot/CMSModules/Messaging/Controls/MessageMenu.ascx.cs
using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using CMS.ExtendedControls;
using CMS.Helpers;

public partial class CMSModules_Messaging_Controls_MessageMenu : CMSContextMenuControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string menuId = ContextMenu.MenuID;
        string parentElemId = ContextMenu.ParentElementClientID;

        string actionPattern = "ContextMessageAction_" + parentElemId + "('{0}', GetContextMenuParameter('" + menuId + "'));";

        // Main menu
        lblReply.Text = ResHelper.GetString("messaging.reply");
        pnlReply.Attributes.Add("onclick", string.Format(actionPattern, "reply"));

        lblForward.Text = ResHelper.GetString("messaging.forward");
        pnlForward.Attributes.Add("onclick", string.Format(actionPattern, "forward"));

        lblMarkRead.Text = ResHelper.GetString("Messaging.Action.MarkAsRead");
        pnlMarkRead.Attributes.Add("onclick", string.Format(actionPattern, "markread"));

        lblMarkUnread.Text = ResHelper.GetString("Messaging.Action.MarkAsUnread");
        pnlMarkUnread.Attributes.Add("onclick", string.Format(actionPattern, "markunread"));
    }
}