Interface ITemplateControlLoader
Responsible for loading a System.Web.UI.Control for an object instance if such a template exist.
Namespace: EPiServer.Web
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7Syntax
public interface ITemplateControlLoader
Methods
LoadControl(HttpContextBase, Type, Object, TemplateControl, String, IDictionary<String, Object>, Action<Control, Object>)
Loads the template control that is associated with the provided content item.
Declaration
Control LoadControl(HttpContextBase httpContext, Type renderType, object renderData, TemplateControl templateControl, string tag, IDictionary<string, object> renderSettings, Action<Control, object> bindDataAction)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Web.HttpContextBase | httpContext | The HTTP context. |
| System.Type | renderType | Type of the render. |
| System.Object | renderData | The render data. |
| System.Web.UI.TemplateControl | templateControl | The template control used to load any user controls with. |
| System.String | tag | The tag. |
| System.Collections.Generic.IDictionary<System.String, System.Object> | renderSettings | The render settings. |
| System.Action<System.Web.UI.Control, System.Object> | bindDataAction | Delegate called after control creation where data can be bound to control |
Returns
| Type | Description |
|---|---|
| System.Web.UI.Control | A new template control instance or null if no template existed. |