M
moondaddy
I've build a basepage that will be used for all the pages in my website. I
created a propery in the base page called Title like this:
Private baseTitle As HtmlGenericControl
Protected Property Title() As String
Get
Return baseTitle.InnerText
End Get
Set(ByVal Value As String)
baseTitle.InnerText = Value
End Set
End Property
and it sets it's value in an htmlcontrol like this:
' Page Title
baseTitle = New HtmlGenericControl("title")
baseTitle.ID = "baseTitle"
Me.Controls.Add(baseTitle)
This way I can set the page title from the page that inherits the base page.
how can I do a similar thing to set the page's stilesheet in the link tag?
I will also be wanting to reference the script files the same way.
Any good recomendations?
created a propery in the base page called Title like this:
Private baseTitle As HtmlGenericControl
Protected Property Title() As String
Get
Return baseTitle.InnerText
End Get
Set(ByVal Value As String)
baseTitle.InnerText = Value
End Set
End Property
and it sets it's value in an htmlcontrol like this:
' Page Title
baseTitle = New HtmlGenericControl("title")
baseTitle.ID = "baseTitle"
Me.Controls.Add(baseTitle)
This way I can set the page title from the page that inherits the base page.
how can I do a similar thing to set the page's stilesheet in the link tag?
I will also be wanting to reference the script files the same way.
Any good recomendations?