How to set the meta tags dynamically in VB.Net ?

Posted by Ranjeet_8 under VB.NET category on | Points: 40 | Views : 1391
Set the meta tags dynamically

Dim headTag As New HtmlHead()
' Add a Description meta tag
Dim metaTag As New HtmlMeta()
metaTag.Name = "Description"
metaTag.Content = "Set your Description here....."

' Add a Keywords meta tag
metaTag.Name = "Keywords"
metaTag.Content = "Set your Keywords here.....!!!!"

Comments or Responses

Login to post response