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/TDijk1/erp-apps.eu/wwwroot/CMSAdminControls/ColorPicker/ColorPicker.ascx.cs
using System;


using CMS.Helpers;
using CMS.Base;
using CMS.UIControls;

public partial class CMSAdminControls_ColorPicker_ColorPicker_Control : CMSUserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string previewId = QueryHelper.GetText("previewid", string.Empty);
        string controlId = QueryHelper.GetText("controlid", string.Empty);
        bool postback = QueryHelper.GetBoolean("postback", false);
        string color = QueryHelper.GetText("color", "#FFFF00");

        if (!RequestHelper.IsPostBack())
        {
            txtColor.Text = color;
        }
        string script = "function CP_SetColor(){SetColor(" + ScriptHelper.GetString(txtColor.ClientID) + ", " + ScriptHelper.GetString(controlId) + ", " + ScriptHelper.GetString(previewId) + ", " + postback.ToString().ToLowerCSafe() + ");}";
        ltlScript.Text = ScriptHelper.GetScript(script);

        // Register wopener script
        ScriptHelper.RegisterWOpenerScript(Page);
    }
}