Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Meta Tags with Master Pages

Meta Tags with Master Pages

Scheduled Pinned Locked Moved ASP.NET
helpquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sam Heller
    wrote on last edited by
    #1

    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 follows As one tag and then Public 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 page Master.MetaTags.Description = "Hobo" Master.MetaTags.Title= "Hobo" Any help on this one is much appreciated.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups