Sign In
Technical Weblog of Eric Charran
A Journal of My Technical Achievements and Challenges
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Blog Home
Email Blog Author
Share this
RSS for posts
Atom
RSS for comments
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
.NET Development
BizTalk Server
Electronics and Portables
Exchange and Windows Mobile
General Microsoft and MCS
Hyper-V, Virtual PC and Virtual Server 2005
LINQ Development
Office
SharePoint 2010
SharePoint and MOSS 2007
SQL Server
Team Foundation Server
Vista
Visual Studio
WCF Development
Windows 7
Windows Communication Foundation
Windows Server 2008
XBOX
Archive
Archives
March 2012
(1)
October 2011
(1)
February 2011
(1)
July 2010
(1)
May 2010
(2)
April 2010
(4)
February 2010
(1)
December 2009
(1)
November 2009
(3)
May 2009
(2)
March 2009
(2)
February 2009
(1)
January 2009
(1)
December 2008
(1)
November 2008
(1)
October 2008
(2)
September 2008
(2)
August 2008
(1)
June 2008
(3)
May 2008
(6)
April 2008
(7)
March 2008
(5)
February 2008
(1)
December 2007
(5)
November 2007
(4)
October 2007
(4)
September 2007
(3)
August 2007
(7)
July 2007
(4)
June 2007
(3)
May 2007
(8)
April 2007
(11)
March 2007
(15)
February 2007
(12)
January 2007
(11)
December 2006
(10)
November 2006
(11)
October 2006
(5)
September 2006
(9)
August 2006
(14)
July 2006
(5)
June 2006
(6)
May 2006
(10)
April 2006
(11)
March 2006
(21)
February 2006
(8)
January 2006
(7)
December 2005
(6)
November 2005
(14)
October 2005
(8)
Web Form Inheritance in .NET 2.0
MSDN Blogs
>
Technical Weblog of Eric Charran
>
Web Form Inheritance in .NET 2.0
Web Form Inheritance in .NET 2.0
Eric Charran
7 Mar 2006 11:42 AM
Comments
1
Because of the changes to the compilation model and structure of aspx pages in .NET 2.0, page inheritance is becomes a tricky process. Many of us from the .NET 1.1 days used to create BasePage classes which where inherited by other pages and provided horizontal functionality such as logging methods, error handling methods and other centralized functionality. While the argument for page inheritance was around long before 2.0 (whether to do it or not from a true OO perspective), it is a little more challenging in .NET 2.0. Because everything is a partial class, and the code-beside model generates the other half of the page class, there is a little complication on how inheritance would work on a web form. See the following article and reference the "What to watch out for" section on how to provide page inheritance in ASP.NET 2.0.
http://west-wind.com/weblog/posts/3016.aspx
As the article states, you have to do a lot of work in order to make your page inherit. While its not straight forward, it will provide the inheritance model for your pages. What it has prompted me to do is to consider page inheritance in general.
1 Comments
.NET Development
Blog - Comment List MSDN TechNet
Comments
Loading...