[thelist] (OT) Stylesheet based on URL

Les Lytollis leslytollis at dimensions-corporatewear.co.uk
Thu Nov 6 05:37:21 CST 2003


Ken Wrote:
>Request.ServerVariables("Server_Name") will give you the name of the
host requested (eg company1.mydomain.co.uk).
> 

Then John wrote:
>> URLString = request.servervariables("HTTP_HOST")
> > if instr(1,URLString, "subdomain1",1)>0 then response.write("<LINK 
> > REL=""stylesheet"" TYPE=""text/css"" HREF=""subdomain1.css"">" & > > vbcrlf) else response.write("<LINK REL=""stylesheet""
> > TYPE=""text/css"" HREF=""default.css"">" & vbcrlf) End If
> 

Then Ken wrote:
> If this is ASP.Net you don't want to do it this way...
> 

Can you enlighten us please Ken?



********************Confidentiality Notice & Disclaimer ***********************
This message, together with any attachments, is for the confidential and exclusive use of the addressee(s).
If you receive it in error, please delete the message and its attachments from your system immediately and notify us by return e-mail.
Do not disclose, copy, circulate or use any information contained in this e-mail.

(1) Whilst we have taken reasonable precautions to ensure that any attachment to this e-mail has been swept for viruses, we cannot accept liability for any damage sustained as a result of software viruses and would advise that you carry out your own virus checks before opening any attachment.
(2) The sender shall remain solely accountable for any statements, representations or opinions that are clearly his or her own and not made in the course of employment.
***********************************************************************************



More information about the thelist mailing list