Skip to content

Instantly share code, notes, and snippets.

@ps-team
Created October 27, 2017 10:02
Show Gist options
  • Save ps-team/7f71ca2fe796c5653c361b1625d75ec2 to your computer and use it in GitHub Desktop.
Save ps-team/7f71ca2fe796c5653c361b1625d75ec2 to your computer and use it in GitHub Desktop.
Add ie stylesheet in custom code using the WebApi
Dim IsIe7 As IECondition = IsIe7.IsVersion(7)
CurrentContext.Page.CSS.Add("/Zengenti-Test-Folder-2013-Re-Design/SiteElements/Stylesheets/903-ie7.css", IsIe7)
'For more option other that .IsVersion see http://support.contensis.co.uk/Development/WebAPI/Reference/Contensis.Framework.Web-Namespace/IECondition-Class/IECondition-Methods/IECondition-Methods.aspx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment