/ Published in: VB.NET

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.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
' 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"
URL: http://codefinds.blogspot.com/2007/11/editing-meta-tags-from-code-behind.html
Comments
