{"id":262,"date":"2010-03-01T13:57:17","date_gmt":"2010-03-01T21:57:17","guid":{"rendered":"http:\/\/singchan.com\/?p=262"},"modified":"2010-03-01T14:00:53","modified_gmt":"2010-03-01T22:00:53","slug":"sharepoint-2010-cssregistration-conditionalexpression-property","status":"publish","type":"post","link":"https:\/\/singchan.com\/wordpress\/2010\/03\/01\/sharepoint-2010-cssregistration-conditionalexpression-property\/","title":{"rendered":"SharePoint 2010: CssRegistration ConditionalExpression Property"},"content":{"rendered":"<p>In a previous post detailing the <a href=\"\/2009\/12\/29\/branding-sharepoint-2010-collaboration-sites-part-2-in-a-series\/\">new SharePoint 2010 CssRegistration control<\/a>, I mentioned that I did not know what the ConditionalExpression property did. Well, now I do!<\/p>\n<p>This property takes an <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/ms537512(VS.85).aspx\" title=\"Internet Explorer Conditional Comments documentation on MSDN\">Internet Explorer Conditional Comment<\/a>. For example, if we wanted to link to a style sheet specific to IE 7 or greater, we can do this:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">&lt;SharePoint:CSSRegistration Name=&quot;foo.css&quot; ConditionalExpression=&quot;gte IE 7&quot; runat=&quot;server&quot; \/&gt;<\/pre>\n<p>The following markup would be emitted:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n&lt;!--&#x5B;if gte IE 7]&gt;\r\n&lt;link rel=&quot;stylesheet&quot; type=&quot;text\/css&quot; href=&quot;foo.css&quot;\/&gt;\r\n&lt;!&#x5B;endif]--&gt;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In a previous post detailing the new SharePoint 2010 CssRegistration control, I mentioned that I did not know what the ConditionalExpression property did. Well, now I do! This property takes an Internet Explorer Conditional Comment. For example, if we wanted to link to a style sheet specific to IE 7 or greater, we can do [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,25,43],"tags":[44,133,132,56,101,88,87,42,47,46,48],"class_list":["post-262","post","type-post","status-publish","format-standard","hentry","category-development","category-html-css","category-sharepoint-development","tag-44","tag-conditional-comment","tag-conditionalexpression","tag-css","tag-cssregistration","tag-ie","tag-internet-explorer","tag-sharepoint","tag-ue","tag-user-experience","tag-ux"],"_links":{"self":[{"href":"https:\/\/singchan.com\/wordpress\/wp-json\/wp\/v2\/posts\/262","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/singchan.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/singchan.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/singchan.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/singchan.com\/wordpress\/wp-json\/wp\/v2\/comments?post=262"}],"version-history":[{"count":2,"href":"https:\/\/singchan.com\/wordpress\/wp-json\/wp\/v2\/posts\/262\/revisions"}],"predecessor-version":[{"id":264,"href":"https:\/\/singchan.com\/wordpress\/wp-json\/wp\/v2\/posts\/262\/revisions\/264"}],"wp:attachment":[{"href":"https:\/\/singchan.com\/wordpress\/wp-json\/wp\/v2\/media?parent=262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/singchan.com\/wordpress\/wp-json\/wp\/v2\/categories?post=262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/singchan.com\/wordpress\/wp-json\/wp\/v2\/tags?post=262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}<!-- WP Super Cache is installed but broken. The constant WPCACHEHOME must be set in the file wp-config.php and point at the WP Super Cache plugin directory. -->