Developers

Controls

When you create Lemoon templates, you can use Web Server and User Controls just like you would in a standard ASP.NET Web Forms application.

Web Server ControlsWeb server controls are objects on ASP.NET Web pages that run when the page is requested and that render markup to the browser. Many Web server controls are similar to familiar HTML elements, such as buttons and text boxes. Other controls encompass complex behavior, such as calendar controls.

User Controls In addition to using Web server controls in your ASP.NET Web pages, you can create your own custom, reusable controls using the same techniques you use for creating ASP.NET Web pages. These controls are called user controls.

Controls are only needed if you want to re-use the same functionality in different places. One example could be a commenting control that should be used for more than one content type. Since every content type usually has its own template, you don't want to implement the commenting functionality on every template. Instead you should create a control which implement the functionality and use the control on the templates.

Controls in Lemoon should inherit from WebControlBase or UserControlBase<T>. to take full advantage of the rendering flow where properties like Content and Site are available.

The examples below shows a user control and a template that uses the control.

About us

Formpipe develops ECM products and solutions for structuring information and supplies them to major companies, authorities and organizations. ECM products help organizations to capture, manage and distribute information, and to place it in context. The company´s software helps improve efficiency, cut costs and reduce risk exposure.

Formpipe was founded in 2004 and has offices in Stockholm, Uppsala and Linköping in Sweden, and in Copenhagen, Denmark. The Formpipe share is listed on NASDAQ OMX Nordic, Small Cap.