I came across a
blog entry by Rich Strahl about adding stylesheets to ASP.NET 2.0 web pages. The way Rick explained it is that he'd recommend a contentplaceholder in the header section of a masterpage and to set the properties there. That's just fine and dandy if the content you'd like to set is in a Masterpage to Page setup. However, you can easily set the header information programatically in 2.0 by accessing the new Header class. Here is an example of how to do this:
Dim KeywordsHtmlMeta as new HtmlMeta
KeywordsHtmlMeta.Name = "Keywords"
KeywordsHtmlMeta.Content = "ASP.NET, Blog, Jason, Gaylord"
Page.Header.Controls.Add(KeywordsHtmlMeta)
Dim CSSHtmlLink as new HtmlLink
CSSHtmlLink.href="~/style.css"
CSSHtmlLink.Attributes.Add("rel", "Stylesheet")
CSSHtmlLink.Attributes.Add("type", "text/css")
CSSHtmlLink.Attributes.Add("media", "all")
Page.Header.Controls.Add(CSSHtmlLink)