I have 2 methods here.

1) Using a literal control

ASPX Code
VB Code:
  1. <HEAD>
  2.    <asp:Literal id="StyleSheet" runat="Server" />
  3. </HEAD>

Code Behind
VB Code:
  1. Protected WithEvents StyleSheet As System.Web.UI.WebControls.Literal
  2.  
  3. Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  4.     StyleSheet.Text = "<LINK href=Badger.css type=""text/css"" rel=""stylesheet"">"
  5. End Sub

2) Using code inline

ASPX Code
VB Code:
  1. <HEAD>
  2.    <LINK href="<%=gStylesheet%>" type="text/css" rel="stylesheet">
  3. </HEAD>

Code Behind
VB Code:
  1. Public gStyleSheet As String
  2.  
  3. Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  4.     gStyleSheet = "Badger.css"
  5. End Sub
Which one of these methods would people use?

Also, I don't suppose anyone knows how to write a server side control that would allow me to do the above:
VB Code:
  1. Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  2.     MyStyleSheetControl.CSSFile = "Badger.css"
  3. End Sub

Regards,

Woof