Click or drag to resize
HtmlUtilsAddScriptReference Method
Adds a script resource to the Scripts collection of a ScriptManager instance.

Namespace: PDTec.IceNet.Web.Utils
Assembly: PDTec.IceNet.Web (in PDTec.IceNet.Web.dll) Version: 6.0.0.0 (6.0.6225.27214)
Syntax
C#
public static void AddScriptReference(
	ScriptManager pScriptManager,
	HtmlUtilsScriptResource resource
)

Parameters

pScriptManager
Type: System.Web.UIScriptManager
The script manager.
resource
Type: PDTec.IceNet.Web.UtilsHtmlUtilsScriptResource
The script resource.
Examples

This example shows how to add script references to the Scripts collection of a ScriptManager.

protected void Page_Init(object sender, EventArgs e)
{
    HtmlUtils.AddScriptReference(ScriptManager.GetCurrent(Page), HtmlUtils.ScriptResource.JQuery);
    HtmlUtils.AddScriptReference(ScriptManager.GetCurrent(Page), HtmlUtils.ScriptResource.JQueryUI);
}
See Also