Class ModuleUserControlBase
ModuleUserControlBase is a base class for Module Controls that inherits from the UserControl base class. As with all MontrolControl base classes it implements IModuleControl.
Implements
Namespace: DotNetNuke.UI.Modules
Assembly: DotNetNuke.dll
Syntax
public class ModuleUserControlBase : UserControl, IModuleControl
Properties
| Improve this Doc View SourceControl
Gets the underlying base control for this ModuleControl.
Declaration
public Control Control { get; }
Property Value
Type | Description |
---|---|
Control | A String. |
ControlName
Gets the Name for this control.
Declaration
public string ControlName { get; }
Property Value
Type | Description |
---|---|
System.String | A String. |
ControlPath
Gets the Path for this control (used primarily for UserControls).
Declaration
public string ControlPath { get; }
Property Value
Type | Description |
---|---|
System.String | A String. |
LocalResourceFile
Gets or sets the local resource file for this control.
Declaration
public string LocalResourceFile { get; set; }
Property Value
Type | Description |
---|---|
System.String | A String. |
ModuleContext
Gets the Module Context for this control.
Declaration
public ModuleInstanceContext ModuleContext { get; }
Property Value
Type | Description |
---|---|
ModuleInstanceContext | A ModuleInstanceContext. |
Methods
| Improve this Doc View SourceLocalizeSafeJsString(String)
Gets a localized string with special characters escape for safe use in javascript.
Declaration
protected string LocalizeSafeJsString(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key to find the localized value. |
Returns
Type | Description |
---|---|
System.String | The localized text cleaned up for javascript usage. |
LocalizeString(String)
Gets a localized string value from a key.
Declaration
protected string LocalizeString(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key to find the localized value. |
Returns
Type | Description |
---|---|
System.String | The localized value. |