469,133 Members | 1,089 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,133 developers. It's quick & easy.

Rebase link tag in conditional comment

Hi there,

I've just been reading "ASP.Net 2.0 - Master Pages: Tips, Tricks, and
Traps" by K. Scott Allen (http://odetocode.com/Articles/450.aspx) and
discovered how rebasing works with URL's in link tags for external css
files.

My question is, does this also work for link tags enclosed within
conditional comments? eg:
<!--[if IE]>

<link rel="stylesheet" media="all" type="text/css"
href="css/globalMenus_ie.css" />

<![endif]-->

Thanks in advance.

John
Jan 16 '08 #1
2 1601
Hi John,

As for the link tag inside conditional comments, are you also using it
inside <headsection? I've performed a simple test and it seems ASP.NET
runtime can correctly rebase the <link>'s url (inside conditional
comments). My test is performed under VS 2008.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: "John" <Jo*******@community.nospam>
Subject: Rebase link tag in conditional comment
Date: Wed, 16 Jan 2008 14:53:51 -0000
Hi there,

I've just been reading "ASP.Net 2.0 - Master Pages: Tips, Tricks, and
Traps" by K. Scott Allen (http://odetocode.com/Articles/450.aspx) and
discovered how rebasing works with URL's in link tags for external css
files.

My question is, does this also work for link tags enclosed within
conditional comments? eg:
<!--[if IE]>

<link rel="stylesheet" media="all" type="text/css"
href="css/globalMenus_ie.css" />

<![endif]-->

Thanks in advance.

John
Jan 17 '08 #2
Hello Steven,

Yes it is inside the <headsection.

That's good news. Thanks very much for you help.

Best regards

John

"Steven Cheng[MSFT]" <st*****@online.microsoft.comwrote in message
news:Rb****************@TK2MSFTNGHUB02.phx.gbl...
Hi John,

As for the link tag inside conditional comments, are you also using it
inside <headsection? I've performed a simple test and it seems ASP.NET
runtime can correctly rebase the <link>'s url (inside conditional
comments). My test is performed under VS 2008.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no
rights.

--------------------
>>From: "John" <Jo*******@community.nospam>
Subject: Rebase link tag in conditional comment
Date: Wed, 16 Jan 2008 14:53:51 -0000
Hi there,

I've just been reading "ASP.Net 2.0 - Master Pages: Tips, Tricks, and
Traps" by K. Scott Allen (http://odetocode.com/Articles/450.aspx) and
discovered how rebasing works with URL's in link tags for external css
files.

My question is, does this also work for link tags enclosed within
conditional comments? eg:
<!--[if IE]>

<link rel="stylesheet" media="all" type="text/css"
href="css/globalMenus_ie.css" />

<![endif]-->

Thanks in advance.

John

Jan 17 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

28 posts views Thread by Benjamin Niemann | last post: by
10 posts views Thread by nimmi_srivastav | last post: by
5 posts views Thread by Jarod_24 | last post: by
6 posts views Thread by patrick j | last post: by
reply views Thread by Ross Patterson | last post: by
39 posts views Thread by polas | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.