Hi Lynn,
You're close, but the code to do two links would be more like this. Both links are only added if the user is authenticated.
<script runat="server">
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init
If Request.IsAuthenticated then
Dim oCSS As Control = Me.Page.FindControl("CSS")
If Not oCSS is Nothing Then
'add a link for the css file to the head section
Dim oLink as HtmlGenericControl = New HtmlGenericControl("link")
oLink.Attributes("rel") = "stylesheet"
oLink.Attributes("type") = "text/css"
oLink.Attributes("href") = SkinPath & "admin.css"
oCSS.Controls.AddAt(0, oLink)
'now add a script reference for Javascript to the head section
oLink = New HtmlGenericControl("script")
oLink.Attributes("language") = "javascript"
oLink.Attributes("type") = "text/javascript"
oLink.Attributes("src") = SkinPath & "MyJavascript.js"
oCSS.Controls.AddAt(0, oLink)
End if
End If
End Sub
</script>