Click or drag to resize
ScriptHelperRegisterModule Method
Renders JavaScript code to start a client-side module.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 9.0.0
Syntax
C#
public static void RegisterModule(
	Control control,
	string moduleId,
	Object parameters = null
)

Parameters

control
Type: System.Web.UIControl
The control that will be used to register JavaScript code.
moduleId
Type: SystemString
The full name of the client-side module to register.
parameters (Optional)
Type: SystemObject
An object that contains the named parameters to set for the module.
Remarks
Multiple instances of the same client-side module can be registered. The parameters object contains name/value pairs. Regular, anonymous and dictionary based classes are supported.
See Also