Click or drag to resize

JSHelperAddLinkRef Method (Page, String, String, String, Boolean)

Add a stylesheet reference (or other links) to the page header. Note that application developers who want to limit browser caching should generally use the AddLinkRef(Page, String, String, String, String) overload and 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 AddLinkRef(
	Page page,
	string href,
	string rel,
	string type,
	bool limitCache
)

Parameters

page
Type: System.Web.UIPage
The page to which to add the reference.
href
Type: SystemString
The stylesheet file path.
rel
Type: SystemString
The 'rel' attribute of the link (typically 'stylesheet')
type
Type: SystemString
The 'type' attribute of the link (typically 'text/css')
limitCache
Type: SystemBoolean
Add a ver parameter with the platform version to the reference to prevent unwanted browser caching.
See Also