IE conditional comments not working in aspx page

Hari Krishnan

I want to use the IE conditional comments to load the Angular scripts based on the IE version. But the conditional comments are not working, it throws error as angular is undefined? can anyone help me with this? the IE conditional comments will not work inside <asp:content> tag?

<asp:Content ID="Content2" ContentPlaceHolderID="ScriptSection" runat="server">

    <!--[if lt IE 9]>
<script src='<%= Page.ResolveClientUrl("~/Scripts/angular-1.2.16.min.js")%>' type="text/javascript"></script>
<![endif]-->

    <!--[if gte IE 9]>
<script src='<%= Page.ResolveClientUrl("~/Scripts/angular.min.js")%>' type="text/javascript"></script>
<![endif]-->
</asp:Content>
Kaushik Maheta
<![if IE]>   
<script src='<%= Page.ResolveClientUrl("~/Scripts/angular-1.2.16.min.js")%>' type="text/javascript"></script>
<![endif]>

<![if IE]>   
<script src='<%= Page.ResolveClientUrl("~/Scripts/angular.min.js")%>' type="text/javascript"></script>
<![endif]>   

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

HTML IE conditional statement: Not working with Chrome/Firefox

From Dev

Conditional comments script for IE11 not possible? Solution?

From Dev

onkeydown event on an ASPX page

From Dev

IE conditional comments are not working

From Dev

Styling issue in ASPX page

From Dev

dynamic content for aspx page

From Dev

IE conditional comments with Sass and Bourbon

From Dev

Alternative to IE 10 Conditional Comments to center positioned div

From Dev

ASPX page not loading in IIS

From Dev

if conditional statement not working with IE 11

From Dev

Redirect a page to an aspx page works in chrome but not in IE

From Dev

Ternary operator in aspx page

From Dev

Disabling Browser Caching for a Web Page, Not Working for IE

From Dev

ASPX page to render image suddenly not working in Firefox. Works in Chrome/IE

From Dev

Localization not working for all the Markup / Tags in ASPX page

From Dev

Target IE 9 AND less with conditional comments

From Dev

Meaning of "~/page.aspx"

From Dev

Navigation is not working on aspx page

From Dev

IE9 conditional statement not working?

From Dev

how to add a conditional statement into .aspx page controlled by angular js

From Dev

ASPX Routing URL not working

From Dev

difference between conditional comments <!--[if lt IE 9]> and <!--[if lte IE 8]>

From Dev

Conditional comments not functioning

From Dev

printing page as popup window is not working on chrome working on mozilla and IE

From Dev

Regex not working in asp.net(.aspx page)

From Dev

conditional comments in html

From Dev

passing data in comments to aspx page

From Dev

JavaScript Conditional Comments for IE

From Dev

Why does IE9 on emulation mode render conditional comments?

Related Related

HotTag

Archive