I am trying to use a conditional CssRegistration command in SharePoint 2010, but is not working. Here is the command I am using:
<SharePoint:CssRegistration ID="CssRegister1" name="<% $SPUrl:~SiteCollection/Style Library/nh/css/ie8.css %>" After="main.css" runat="server" ConditionalExpression="IE 8"/>
The css file I want to load is in the style library as indicated. I have approved the master page that I have included this command on. I would like to have my conditional style sheet load after my main.css that is why I am using the After property.
The result is that no include line is appearing the generated html. What am I doing wrong?