Click or drag to resize

JSHelperAddScriptRef Method (Page, String, String, Int32, Boolean, Boolean)

Add script references to the page header. Generally application developers who want to limit browser caching should provide the AppCacheVer(IAppContext) as the cacheVer.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static void AddScriptRef(
	Page page,
	string src,
	string cacheVer,
	int index,
	bool async = false,
	bool defer = false
)

Parameters

page
Type: System.Web.UIPage
The page to which to add the reference.
src
Type: SystemString
The script file path.
cacheVer
Type: SystemString
The cache version parameter to add to the script reference, generally obtained from AppCacheVer(IAppContext).
index
Type: SystemInt32
Position at which to add the reference. If negative, script is appended.
async (Optional)
Type: SystemBoolean
Add the 'async' attribute to the script.
defer (Optional)
Type: SystemBoolean
Add the 'defer' attribute to the script.
See Also