User Control Functions

The User Control functions allow you to create ASCX user controls and use them as regular CMS Functions.

The User Control functions are available in Experience Management for insertion on pages, templates, in other functions and in function calls in the CMS Console.

Note: To quickly create boilerplate-code User Control functions (as well as Master Page based templates) from Visual Studio 2012, install an ad-hoc Visual Studio 2012 extension by Experience Management: CompositeC1WebFormExtensions.vsix. (only working with Visual Studio 2012.)

In this guide, you'll learn how to create, edit and use User Control functions. 

Creating User Control Functions

Learn how to create User Control functions in Experience Manager.

Defining Parameters

Learn how to define parameters in User Control functions.

Changing Widgets

Learn how to change widgets for User Control function parameters.

Rendering URLs

Learn how to render Page URLs and Media URLs in User Control functions.

Getting Experience Manager Data

Learn how to get CMS Data in User Control functions.

Executing Other Functions

Learn how to execute other functions in User Control functions.

Samples

A few sample User Control functions to learn from.

Advanced Setup

Learn how to change the root folder for your ascx/ascx.cs files (User Control functions) and do other advanced setup tasks.

Getting Error Info

Learn how to get error information on User Control functions.

Using asp:form

Learn how to properly use ASP.NET controls on pages and in XSLT-based page templates.

Locating ASP.NET Controls

Learn how to locate ASP.NET controls on a CMS Page.

Using ASP.NET AJAX Features

Learn how to use ASP.NET AJAX features in Experience Manager.

Captcha

Learn how to use the built-in CAPTCHA functionality in Experience Manager on your ASP.NET Forms.

Load User Control

Learn how to create and use a simple Web User Control on a web page with the LoadUserControl function.