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/MBoogaard/oosting-horseriding.com/CMS/CMSInlineControls/WebPartZone.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 CMSInlineControls_WebPartZone : InlineUserControl
{
    #region "Properties"

    /// <summary>
    /// Control parameter.
    /// </summary>
    public override string Parameter
    {
        get
        {
            return zoneElem.ID;
        }
        set
        {
            zoneElem.ID = value;
        }
    }

    #endregion


    #region "Page events"

    /// <summary>
    /// Method that is called when the control content is loaded.
    /// </summary>
    public override void OnContentLoaded()
    {
        base.OnContentLoaded();

        SetupControl();
    }


    /// <summary>
    /// Load event handler.
    /// </summary>
    protected void SetupControl()
    {
        // Init the zone ID
        string zoneId = ValidationHelper.GetString(GetValue("ID"), "");
        if (!String.IsNullOrEmpty(zoneId))
        {
            zoneElem.ID = zoneId;
        }
    }

    #endregion
}