BYTE.com
RSS feed

Newsletter
Free E-mail Newsletter from BYTE.com
Email Address
First Name
Last Name




 
    
             
BYTE.com > Mr. Computer Language Person > 2004

The Web, with Inheritance

By Martin Heller

July 19, 2004

(The Web, with Inheritance :  Page 1 of 1 )



Readers who have followed me long enough know that my "Programming Windows" column in Windows Magazine, begun in 1992, turned into a "Web Dev" column in 1997, which lasted almost until Windows Magazine folded. I spent a couple of years working on the winmag.com web site, and a couple more years working on PCPitstop.com.

One of the first things I did at each site was to help to set up a template system to insure that the site had a unified look and feel that could be changed easily from a single place, whenever the Powers That Be decided to do a redesign of the site. With the web server technology of the time, the best way to implement a template was to have three standard files that the server included on each page: one for the header section of the page, one for the top and left of the page, and one for the right and bottom of the page. Step one in designing a new page was to copy an empty template page that contained calls to include the three standard files, and start working on the content section in the middle of the page.

When ASP.NET 1.0 came along, server-side includes didn't seem like the best way to achieve a standard look and feel. What I and a lot of other people did instead was to create User Controls (.ASCX files) for the head, top, and bottom sections, and an empty template page that called them all. Step one in designing a new page was to copy an empty template.aspx page and its code-behind file, template.aspx.cs, rename both files, and then change the Codebehind reference in the ASPX Page directive to match the new code-behind file name.

What I really wanted was master pages and visual inheritance. ASP.NET 1.1 didn't have it, either, but ASP.NET 2.0 does. Finally! Basically, you can design a master page, designate areas on the page that are content placeholders, and build content pages that inherit from the master page.

More about ASP.NET 2.0

In addition to master pages, ASP.NET 2.0 supports skins, which are sets of properties and templates for controls, and themes, which are sets of skins, images, and stylesheets.

 Page 1 of 1 


BYTE.com > Mr. Computer Language Person > 2004
Dr. Dobb's Media Center

2008 International Mathematica Conference
Dr. Dobb's interviews Wolfram Research's Theo Gray, co-founder and Director of User Interfaces, and Roger Germundsson, Director of Research and Development, about the upcoming 2008 International Mathematica Conference.

How Do You Do Nightly Builds and Tests when there is No Overnight? Software Production in a Geographically Distributed Environment
Attend this Webcast and find out how to overcome common build-test-deploy challenges that affect all members of a distributed team, including: <ul> <li> Communication difficulties, because of time-zone and cultural differences</li> <li> Workflow challenges, like lack of documented procedures and build and test handoff problems</li> <li> Slow build and test cycles, broken builds, and other factors that hamper distributed team productivity</li> </ul> Thursday, September 25, 2005 " 11am PT / 2pm ET </p>

BYTE.com Store

BYTE CD-ROM
NOW, on one CD-ROM, you can instantly access more than 8 years of BYTE.
 
The Best of BYTE: Volume 2 - Heuristic Algorithms
The Best of BYTE: Volume 2 - Heuristic Algorithms
In this volume of Best of BYTE, we explore the emergence of some heuristic algorithms. Although we have only scratched the surface of this intriguing subject, we hope we've suggested the potential of the synthesis of heuristics and algorithms.

© 2008 Think Services, Privacy Policy, Terms of Service, United Business Media Limited
Site comments: webmaster@byte.com
Web Sites: BYTE.com, dotnetjunkies.com, Dr. Dobb's Journal, SD Expo, Sys Admin, sqljunkies.com, Unixreview



MarketPlace
simple helix is the most trusted name in the hosting industry! Join us and host with the experts!
Sign Up & Get Full Access To The Definitive Online Book Collection With SkillSoft's Books24x7�.
Helps Employees Develop & Hone New Technical Programming Skills. Sign Up & Get Full Access.
Fast online exception analysis. Capture customer crash data online.
Understand C/C++ code in less time. A new team member ? Inherited legacy code ? Get up to speed faster with Crystal Flow for C/C++. Code-formatting improves readability. Flowcharts are integrated with code browser. Export flowcharts to Visio.
Wanna see your ad here?
 

web2