Return to Snippet

Revision: 12397
at March 12, 2009 17:25 by blackf0rk


Initial Code
' In your aspx source code do:

<meta id="metaDescription" name="description" content="" runat="server" />

' In your aspx code behind do:

metaDescription.Content = "Description goes here"

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

Initial Description
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.

Initial Title
Editing Meta Tags From Code Behind

Initial Tags
code

Initial Language
VB.NET