How To Work With SEO Server Control

  • Updated

This article demonstrates the code needed to work with the SEO Server Control.  

Normally one would use the Visual Studio toolbox to drop an Ektron Server control.  However, with the SEO Server control it has to be done manually.  The code example is below for your convenience.  The SEO Product Documentation can be found here

<%@ Page Language="C#" %>

<%@ Register Assembly="Ektron.Cms.Controls" Namespace="Ektron.Cms.Controls" TagPrefix="CMS" %>
<%@ Register Src="~/Workarea/SEO/seo_w3c.ascx" TagPrefix="uc1" TagName="seo_w3c" %>

<!DOCTYPE html>

<script runat="server">

</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<uc1:seo_w3c runat="server" ID="seo_w3c" />
</div>
</form>
</body>
</html>