Helper method to register a client script file. If the method is called multiple times using the same key, only a single instance of the file is registered.

Namespace:  EPiServer
Assembly:  EPiServer (in EPiServer.dll) Version: 6.0.530.0

Syntax

C#
public void RegisterClientScriptFile(
	string rootRelativePath
)

Parameters

rootRelativePath
Type: System..::.String
The script file that should be referenced, for instance "EPiServerSample/util/javascript/system.js"

Remarks

The relativePath will be used as the unique script key.

See Also