473,395 Members | 1,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 1735
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: neblackcat | last post by:
Would anyone like to comment on the following idea? I was just going to offer it as a new PEP until it was suggested that I post it here for comment & consideration against PEP 308. I'm far...
28
by: Benjamin Niemann | last post by:
Hello, I've been just investigating IE conditional comments - hiding things from non-IE/Win browsers is easy, but I wanted to know, if it's possible to hide code from IE/Win browsers. I found...
1
by: ammarton | last post by:
Hello all...I'm a bit new to working with Macros in Access so forgive me if the terminology I use is not accurate. To preface this, basically I am using a form on a replicated database so the...
10
by: nimmi_srivastav | last post by:
Below you will see an example of a nested conditional expression that this colleague of mine loves. He claims that it is more efficient that a multi-level if-else-if structure. Moreover, our...
5
by: Jarod_24 | last post by:
1. I have a Solution named "Bjarne" that contains several Projects. Each project generates it's own DLL, that must be included with the main executable. Each Dll's Base adress is set to:...
6
by: patrick j | last post by:
Hi I've been testing out the "Conditional Comment" for IE. This is because for my web-site I want to have two style sheets, one for IE 6 and one for other browsers. Thus I hope to have my...
0
by: Ross Patterson | last post by:
I recently was forced to build PIL under Cygwin Python 2.4.3 and ran into the Cygwin fork/rebase issue with TCL/TK yet again. Unfortunately, none of the rebase workarounds I found through my...
2
by: shaji | last post by:
HI can anyone explain me (or direct me to a link) the differences in the system libraries in .net 1.1 and .net 2.0? What are the differences in GAC and Rebase between these two versions? Thanks in...
39
by: polas | last post by:
Afternoon all. I was just wondering about this point - I have (generally) used // for commenting a single line in C, but from looking at code other people have written it seems many use /* */...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.