Just Code‎ > ‎

Asp.Net - Register your web user controls once and for all in web.config

posted Jan 26, 2010, 12:45 PM by Peter Henell   [ updated Jan 26, 2010, 1:16 PM ]
<?xml version="1.0"?>

<configuration>

  <system.web>
    
    <pages>
      <controls>
        <add tagPrefix="uc" src="~/Controls/first.ascx" tagName="one"/>
        <add tagPrefix="uc" src="~/Controls/second.ascx" tagName="two"/>
        <add tagPrefix="ThirdParty" assembly="ThirdPartyAssembly"/>
      </controls>
    </pages>

  </system.web>

</configuration>
Comments