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
Syntax
'Declaration
Public Shared Sub Register ( _
cssRef As String _
)
'Usage
Dim cssRef As StringCssRegistration.Register(cssRef)
public static void Register(
string cssRef
)
Parameters
cssRef
Type: System.StringA string that contains a reference to the CSS file.
Remarks
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.
Examples
CssRegistration.Register("sps");
CssRegistration.Register("http://fulladdress/filename.css");