Version

ResolveAndRegisterClientScriptInclude(String,String,String,String,Control,String) Method

Given the list of parameters required, this method will determine which resource to use, according to which value has been specified. defaultValue and embeddedResourcePath do not both need to be specified, but one of them MUST be a valid string.
Syntax
'Declaration
 
Public Overloads Shared Function ResolveAndRegisterClientScriptInclude( _
   ByVal defaultValue As String, _
   ByVal embeddedResourcePath As String, _
   ByVal propertyValue As String, _
   ByVal fileName As String, _
   ByVal control As Control, _
   ByVal key As String _
) As String
public static string ResolveAndRegisterClientScriptInclude( 
   string defaultValue,
   string embeddedResourcePath,
   string propertyValue,
   string fileName,
   Control control,
   string key
)

Parameters

defaultValue
This is the controls default value, and can be null for CLR2 assemblies
embeddedResourcePath
This is the name used to retreive the js file from the assembly as an embedded resource. This value can be null for assemblies built pre CLR2.
propertyValue
This is the actual value which was specified for the property on the control
fileName
This is the js filename only, with out any directories, etc.
control
A reference to the control which requires this javascript file inclusion
key
The key value to be used when registering this javascript include
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also