This topic has not yet been rated - Rate this topic

CssRegistration.Register Method (String)

Registers the specified cascading style sheet (CSS) in master pages, content pages, or .ascx code pages.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
public static void Register(
	string cssRef
)

Parameters

cssRef
Type: System.String
A string that contains a reference to the CSS file.

The cascading style sheet can be registered as a leaf filename or as a URL.

Leaf filenames tell the control to point to /_layouts/Web LCID/styles/Leafname.css, where WebLCID is the locale ID and Leafname.css is the name of the CSS file.

The URL will render links to the full URL.

CssRegistration.Register("sps");

CssRegistration.Register("http://fulladdress/filename.css");

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ