[thelist] Stylesheet based on URL

Jason Handby jasonh at corestar.co.uk
Thu Nov 6 07:43:07 CST 2003

> You could add runat="server" to the <head></head> tags, and then a new
> literal control to the Controls collection with the necessary stylesheet
> information.

Aaaaaagh! Ken, I wish you'd been around when I was trying to solve a similar
problem a few weeks ago :-)  I was trying to work out how to dynamically add
a "<style> ... </style>" tag to the head of my document; I had no idea you
could just add "runat=server" to the <head> tag and then add controls
dynamically. Marvellous!


More information about the thelist mailing list