This topic has not yet been rated - Rate this topic

CssRegistration.After Property

SharePoint 2010

Gets or sets the name of the cascading style sheet (CSS) file after which the file being registered is rendered.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
public string After { get; set; }

Property Value

Type: System.String
A string that contains the file name.

For example, if the CSS file being registered is "mycss.css" and the After property is "corev4.css", "mycss.css" is rendered after "corev4.css".

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
After causes links to appear last
The behavior I've observed on the RTM bits is that this property always causes the <link> to render after the core styles and the AlternateCssUrl. Other than that it works as described - if you have multiple CssRegistrations with After values all will render after the other links in order by the After values.