Geeks With Blogs
Chris Breisch   .NET Data Practices
Search this Blog!

Did you know that in ASP.NET 2.0 you can register user controls and custom controls in your Web.Config rather than at the top of every page?  I didn't.

<?xml version="1.0"?>

<configuration>

  <system.web>
    
    <pages>
      <controls>
        <add tagPrefix="scottgu" src="~/Controls/Header.ascx" tagName="header"/>
        <add tagPrefix="scottgu" src="~/Controls/Footer.ascx" tagName="footer"/>
        <add tagPrefix="ControlVendor" assembly="ControlVendorAssembly"/>
      </controls>
    </pages>

  </system.web>

</configuration>
Posted on Thursday, February 15, 2007 7:29 AM ASP.NET | Back to top


Comments on this post: Register User Controls and Custom Controls in Web.Config

# re: Register User Controls and Custom Controls in Web.Config
Requesting Gravatar...
Me too..Didn't knew about that..reached here after googling about this thing...Thanks
Left by Manish on Aug 21, 2009 5:42 AM

Your comment:
 (will show your gravatar)


Copyright © Chris J. Breisch | Powered by: GeeksWithBlogs.net | Join free