London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Loading...
Area: Optimizely CMS
ARCHIVED This content is retired and no longer maintained. See the latest version here.

The CMS-extended Framework IFrameComponent attribute creates a component for a web form or user control. 

To create an IFrameComponent, add the IFrameComponent attribute to the class as follows:

C#
[IFrameComponent(UrlFromUi="Edit/MyUserControl.ascx")]
public class MyUserControl
{
...
}

The CMS extension of the IFrameComponent has the following additional parameters:

UrlFromUi Optional. The URL to the source, relative the UI folder. Used instead of Url property.
UrlFromUtil Optional. The URL to the source, relative the Utils folder. Used instead of Url property.

User controls

If you use a control with ascx file name ending in any of the Url properties, it is automatically wrapped in an EPiServer.PageBase page.

Last updated: Sep 21, 2015