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/CMSInstall/Controls/LayoutPanels/Error.ascx.cs
using CMS.Helpers;
using CMS.UIControls;
using CMS.ExtendedControls;

public partial class CMSInstall_Controls_LayoutPanels_Error : CMSUserControl
{
    #region "Properties"

    /// <summary>
    /// Error label text.
    /// </summary>
    public string ErrorLabelText
    {
        get 
        {
            return lblError.Text;
        }
        set
        {
            lblError.Text = ResHelper.GetFileString(value);
            lblError.RemoveCssClass("hidden");
        }
    }


    /// <summary>
    /// Error label client ID.
    /// </summary>
    public string ErrorLabelClientID
    {
        get
        {
           return lblError.ClientID;
        }
    }

    #endregion


    #region "Public methods"

    /// <summary>
    /// Displays error help.
    /// </summary>
    /// <param name="resourceString">Resource string</param>
    /// <param name="topic">Topic of the error</param>
    public void DisplayError(string resourceString, string topic)
    {
        hlpTroubleshoot.Text = ResHelper.GetFileString(resourceString);
        hlpTroubleshoot.TopicName = topic;
    }

    #endregion
}