Meta Tags with Master Pages
-
I am currently implementing some search engine optimisation accross a large site. The site has a single master page that handles all of the pages. Obviously within each page I can set the pages title using
Master.Page.Title = "The title"
But when it comes to meta tags there are no available easy way's of tackling this, so i had planned to create some. As followsPublic Property MetaTagsDescription() As String Get Return MetaDescription.Attributes.Item("content") End Get Set(ByVal value As String) MetaDescription.Attributes.Add("content", value) End Set End Property
to create the get and set properties. My question is this. If I were to add another meta tag and create it's get and set properties how could I got about surrounding these two get and set section into a single meta tag property. So I could do the following code in the pageMaster.MetaTags.Description = "Hobo" Master.MetaTags.Title= "Hobo"
Any help on this one is much appreciated.