|
Avick -> RE: Head Data in linked master/Content Page (12/14/2007 11:23:36)
|
Fantastic :) :) Why was I not using these before. :) rdouglass you have converted me. I have since created the following code for a number of pages and its out of this world. Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.WebControls
Partial Class design
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim metaDescription As New HtmlMeta()
metaDescription.Name = "description"
metaDescription.Content = "Website design by Neweb Ireland. Discover the better way to design."
Me.Header.Controls.Add(metaDescription)
Dim metaKeywords As New HtmlMeta()
metaKeywords.Name = "keywords"
metaKeywords.Content = "Neweb, Ireland, Design, Dublin"
Me.Header.Controls.Add(metaKeywords)
End Sub
End Class
Partial Class templates
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim metaDescription As New HtmlMeta()
metaDescription.Name = "description"
metaDescription.Content = "Standard Templates for your website."
Me.Header.Controls.Add(metaDescription)
Dim metaKeywords As New HtmlMeta()
metaKeywords.Name = "keywords"
metaKeywords.Content = "Neweb, Ireland, Design, Dublin, web templates"
Me.Header.Controls.Add(metaKeywords)
End Sub
End Class This makes life so much better. What a difference a day makes [:D]
|
|
|
|