Click or drag to resize

ControlResourcesAddScriptBlock Method

Adds new <script> block to the current page output.

Namespace:  Dynamicweb.Controls
Assembly:  Dynamicweb.Controls (in Dynamicweb.Controls.dll) Version: 4.2.3
Syntax
public static void AddScriptBlock(
	string key,
	string contents
)

Parameters

key
Type: SystemString
String identifier of the target block.
contents
Type: SystemString
Javascript code block contents.
Remarks