Adding default Namespaces and Control libraries in ASP.NET 2.0 with web.config
Posted by: Rick Strahls WebLog,
on 04 Jun 2005 |
View original | NEW Bookmarked: 0 time(s)
Here’s a very useful new feature in ASP.NET 2.0 which allows you to specify the default namespaces that ASP.NET looks for in ASPX pages. In ASP.NET 1.x you either had to use an intrusive @Import directive:
<%@ import namespace="Westwind.Tools" %>
In ASP.NET 2.0 you can now add default namespaces into your web.Config files like this:
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<system.web>
...