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

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>            ...

Advertisement

Similar Posts

  • August 9th ASP.NET Link-Listing more
  • Sharepoint 2007 & ASP.NET 2.0 WebParts more
  • This blog is now closed. Please update your links. more
  • Blogging from Tech Ed 2006 - Stefan Shakow on ASP.NET - level 400 more
  • Calling web services hosted outside of your application with Atlas more
  • Run Cassini as Root Web within Visual Studio more
  • Adding CoComment support to Community Server 2.1 more
  • CS Dev Guide: Add new page or user control to Control Panel more
  • ASP.NET 2.0 Client Validation Javascript Bug more
  • Oracle: Ass first design pattern: Just "Orrible" more

News Categories

.NET | ADO.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Community Server | dasBlog | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD