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 ControlResources. 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:

public void LoadControlScript( Control control, string scriptLocation, string resourceName );
public void LoadControlScript( Control control, string scriptLocation );

See also:

Class ScriptContainer


  Last Updated: 11/12/2008 | © West Wind Technologies, 2008