Registering Server Controls

You need to configure your Web application web.config file and add a page directive in your Page Templates to use Server Controls in your Web Application.

Procedure

  1. Open Internet Information Services (IIS) Manager.
  2. Open your Web application web.config file and add a page control as follows:
    <configuration>
    	<system.web>
    
    <pages>
      <controls>
         <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
         <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    				 <add tagPrefix="tridion" namespace="Tridion.ContentDelivery.Web.UI" assembly="Tridion.ContentDelivery" />
    	  		<add tagPrefix="SmartTarget" namespace="Tridion.SmartTarget.Web.UI" assembly="Tridion.SmartTarget" />
      </controls>
    </pages>
    
    	</system.web>
    </configuration>
  3. Open your Page Templates.
  4. Add the following line to the generated output to add a page directive at the top of every published Web page (.aspx page):
    <%@ Page Language="C#" %>