Option 4: add the whole link to the head in the code
void AddStylesheet(string ssRef) { HtmlHead head = Page.Header; Literal l = new Literal(); l.Text = "<link href=\""+ssRef + "\" type=\"text/css\" rel=\"stylesheet\" />"; head.Controls.Add(l); }
... which is essentially similar to option 2
source share