Loading...

Last updated: Oct 27 2016

Area: Episerver CMS Applies to versions: 10 and higher
Other versions:

Creating a component

This topic describes how to create a component in the Episerver user interface.

How it works

You can use the CMS-extended Framework IFrameComponent attribute to create a component for a web form or user control. 

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

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

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

UrlFromUtil Optional. The URL to the source, relative the Utils folder. Used instead of Url property.
UrlFromUi Optional. The URL to the source, relative the UI 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.


Do you have feedback on this documentation? Send an email to documentation@episerver.com. For development-related questions and discussions, refer to our Forums on https://world.episerver.com/forum/