ScriptContainer.LoadControlScript

Helper function that is used to load script resources for various AJAX controls Loads a script resource based on the following scriptLocation values:

  • WebResource Loads the Web Resource specified out of WebResources. Specify the resource that applied in the resourceName parameter

  • Url/RelativeUrl loads the url with ResolveUrl applied

  • empty (no value) No action is taken

public void LoadControlScript(Control control,
	string scriptLocation,
	string resourceName,
	ScriptRenderModes renderMode)

Parameters

control
The control instance for which the resource is to be loaded

scriptLocation
WebResource, a Url or empty (no value)

resourceName
The name of the resource when WebResource is used for scriptLocation

renderMode

Overloads:


See also:

Class ScriptContainer

© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic