Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Loading...

Recommended reading 

Table of Contents

Introduction

This document describes the additional functionality of the CMS-extended IFrameComponent attribute to create a component for a web form or user control. For more information on the base attribute, see the Framework IFrameComponent attribute.

Using the CMS-Extended IFrameComponent Attribute

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

CopyC#
[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 a control with ascx file name ending is used in any of the Url properties, it will be automatically wrapped in an EPiServer.PageBase page.

Do you find this information helpful? Please log in to provide feedback.

Last updated: Mar 21, 2013

Recommended reading