Click or drag to resize

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

Add a stylesheet reference (or other links) to the page header. Generally application stylesheet references should be added using the AddLinkRef(Page, String, String) overload and this overload only for other types of links. Note that application developers who want to limit browser caching should generally 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,
	string cacheVer
)

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')
cacheVer
Type: SystemString
The cache version string generally obtained from AppCacheVer(IAppContext).
See Also