Click or drag to resize
ScriptHelperGetScriptTag Method
Builds an HTML script tag that can be used to include external script given its URL. Allows to explicitly disable script minification.

Namespace: CMS.Base.Web.UI
Assembly: CMS.Base.Web.UI (in CMS.Base.Web.UI.dll) Version: 10.0.0
Syntax
C#
public static string GetScriptTag(
	string url,
	bool minify = true
)

Parameters

url
Type: SystemString
URL of the script file
minify (Optional)
Type: SystemBoolean
True if minification should be used, otherwise false

Return Value

Type: String
Script tag that references external URL
See Also