Posted By

blackf0rk on 03/12/09


Tagged

edit tags code editing metadata meta metatag behind


Versions (?)

Editing Meta Tags From Code Behind


 / Published in: VB.NET
 

URL: http://codefinds.blogspot.com/2007/11/editing-meta-tags-from-code-behind.html

Dynamically change the content of meta tags from the code behind. This allows you to feed the meta tags with content from a database or other dynamic content.

  1. ' In your aspx source code do:
  2.  
  3. <meta id="metaDescription" name="description" content="" runat="server" />
  4.  
  5. ' In your aspx code behind do:
  6.  
  7. metaDescription.Content = "Description goes here"

Report this snippet  

You need to login to post a comment.