using System; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using CMS.ExtendedControls; using CMS.GlobalHelper; public partial class CMSInlineControls_WebPartZone : InlineUserControl { #region "Properties" /// /// Control parameter. /// public override string Parameter { get { return zoneElem.ID; } set { zoneElem.ID = value; } } #endregion #region "Page events" /// /// Method that is called when the control content is loaded. /// public override void OnContentLoaded() { base.OnContentLoaded(); SetupControl(); } /// /// Load event handler. /// protected void SetupControl() { // Init the zone ID string zoneId = ValidationHelper.GetString(GetValue("ID"), ""); if (!String.IsNullOrEmpty(zoneId)) { zoneElem.ID = zoneId; } zoneElem.Wireframe = ValidationHelper.GetBoolean(GetValue("Wireframe"), false); } #endregion }