London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
You'll need to do this in the code-behind. From memory:
var metaTag = new HtmlGenericControl();
metaTag.TagName = "meta";
metaTag.Attributes.Add("name", "keywords");
metaTag.Attributes.Add("content", CurrentPage.Property["Keywords"].Value.ToString());
Header.Controls.Add(metaTag);
Thanks Deane, I have used the above as a basis to embed the meta data into a user control that sits within a master page...works a treat.
Hi
does anyone have any suggestions on how to embed meta data into pages? I can render the meta data on pages through an episerver property, but am unsure how to embed this data in a meta tag. Thanks.