In any application, it is very desirable for the interface to be consistent. In web applications specifically, you want the user to feel that they are on the same website as they move from page to page, having the same navigation, color scheme, and layout on every page. In .NET windows forms, it is possible to use visual inheritance to have the look and composition of one form, inherit from another. Since each form is itself a class, it would make sense that forms can inherit from each other. However, this capability is not innate to ASP.NET Web forms. While inheritance is supported, this is limited to code inheritance. Methods and Properties can be inherited, however one .aspx page cannot inherit the server controls, form elements, images and HTML script from another base .aspx page. In this article, Craig Bowes shows how to add a form of Visual Inheritance to your ASPX site, simplifying redesign and maintenance.
Visual Inheritance with ASP.NET
http://www.amazon.com/exec/obidos/ASIN/B00007EIML/bigwebmasters-20
http://www.bigwebmaster.com/screenshots/B00007EIML.jpg
November 5, 2002
$8.00
$8.00
22
e-book (Acrobat Reader)
B00007EIML
Wrox
Craig Bowes
asp.net navigation, asp.net color scheme, asp.net windows forms, asp.net class, asp.net web forms, asp.net inheritance, asp.net methods, asp.net properties, asp.net server controls, asp.net article
How to add a form of Visual Inheritance to your ASPX site
In any application, it is very desirable for the interface to be consistent. In web applications specifically, you want the user to feel that they are on the same website as they move from page to page, having the same navigation, color scheme, and layout on every page. In .NET windows forms, it is possible to use visual inheritance to have the look and composition of one form, inherit from another. Since each form is itself a class, it would make sense that forms can inherit from each other. However, this capability is not innate to ASP.NET Web forms. While inheritance is supported, this is limited to code inheritance. Methods and Properties can be inherited, however one .aspx page cannot inherit the server controls, form elements, images and HTML script from another base .aspx page. In this article, Craig Bowes shows how to add a form of Visual Inheritance to your ASPX site, simplifying redesign and maintenance.
5
5.00
10
1
| Rating | Vote % | # of Votes |
|---|---|---|
| 10 | 40% | 2 |
| 9 | 0% | 0 |
| 8 | 0% | 0 |
| 7 | 0% | 0 |
| 6 | 0% | 0 |
| 5 | 0% | 0 |
| 4 | 0% | 0 |
| 3 | 20% | 1 |
| 2 | 0% | 0 |
| 1 | 40% | 2 |
Want to increase the number of votes and resource rating for this listing?
Place a Visual Inheritance with ASP.NET Vote Box on your website.