ClientScriptProxy.LoadControlScript

High level 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 string (no value) No action is taken and nothing is embedded into the page. Use this if you manually want to load resources

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 ClientScriptProxy


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