I\'m trying to programmatically add a . It is working fine when there is a Head element with runat = \"server\" in the
You could define your meta tag as a static string like so:
Private Shared MetaLanguage As String =
String.Format("", CultureInfo.CurrentUICulture.TwoLetterISOLanguageName)
Then place them in your head like so:
<%=MetaLanguage%>
This allow you to use any meta tag values and is easy to read and customize. Note: The use of the Shared keyword (static) helps improve performance.