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

Ranjeet_8
Posted by Ranjeet_8 under VB.NET category on | Points: 40 | Views : 2178
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....."
headTag.Controls.Add(metaTag)

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

Comments or Responses

Login to post response