Thursday, May 27, 2010

Global - Page inheritance in ASP.NET 2.0


The web.config file in ASP.NET 2.0 allows all pages to inherit from a specific base page class (instead of just using the default System.Web.UI.Page class in all pages).

To import the same set of namespaces on every page, just add them to an Imports sections under the pages element.
I hope this was not possible in 1.1 V.