Class ControlLoader
Load a user control using an Url expression like "~/edit/FileManagement.ascx".
Inheritance
Namespace: EPiServer.Web.WebControls
Assembly: EPiServer.dll
Version: 8.11.0Syntax
public class ControlLoader : WebControl
Constructors
ControlLoader()
Declaration
public ControlLoader()
Properties
InnerControl
The usercontrol that was loaded by this webcontrol.
Declaration
public Control InnerControl { get; }
Property Value
Type | Description |
---|---|
System.Web.UI.Control |
Src
Gets or sets the source of the user control to load.
Declaration
public string Src { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Examples
The following are all valid values for Src:
"foo.ascx"
"app/controls/foo.ascx"
"~/edit/foo.ascx"
Methods
OnInit(EventArgs)
Raises the System.Web.UI.Control.Init event.
Declaration
protected override void OnInit(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | An System.EventArgs object that contains the event data. |
RenderBeginTag(HtmlTextWriter)
Renders the HTML opening tag of the control to the specified writer. This method is used primarily by control developers.
Declaration
public override void RenderBeginTag(HtmlTextWriter writer)
Parameters
Type | Name | Description |
---|---|---|
System.Web.UI.HtmlTextWriter | writer | A System.Web.UI.HtmlTextWriter that represents the output stream to render HTML content on the client. |
Remarks
The implemenation does not render any begin tag
RenderEndTag(HtmlTextWriter)
Renders the HTML closing tag of the control into the specified writer. This method is used primarily by control developers.
Declaration
public override void RenderEndTag(HtmlTextWriter writer)
Parameters
Type | Name | Description |
---|---|---|
System.Web.UI.HtmlTextWriter | writer | A System.Web.UI.HtmlTextWriter that represents the output stream to render HTML content on the client. |
Remarks
The implemenation does not render any end tag