Templating Belatedly Comes to .Net

In: building online products

29 Jan 2004

DevX: Introducing ASP.NET 2.0 Master Pages

"ASP.NET 2.0 introduces a new concept known as Master Pages, in which you create a common base master file that provides a consistent layout for multiple pages in your application. To create a Master Page, you identify common appearance and behavior factors for the pages in your application, and move those to a master page. In the master page, you add placeholders called ContentPlaceHolders where the content (child) pages will insert their custom content. When users request the content pages, ASP.NET merges the output of the content pages with the output of the master page, resulting in a page that combines the master page layout with the output of the content page."

This comes with Visual Studio.NET Whidbey, which will be released later this year. It’s hard to believe it took Microsoft so long to create a templating system, but better late than never. Here’s advice on how to do it in the meantime (i.e. with .Net 1.x).

Comment Form

About this blog

I'm CEO of an online trade publishing firm in the marketing and defense verticals. We try to make news and data digestible and useful in an environment that is more noisy each day. This personal blog mixes my thoughts and interests on politics, business, software, and more, based on my business and personal experiences. Over the years I have posted items that turned out spectacularly wrong, and a few posts that stood the test of times better. Personal views only.

Categories

Archives

  • chris: thanks, I googled JetBlue interview and your site pulled together a number of excellent articles in [...]
  • Tim Marman: Assuming the market exists, it seems like the biggest challenge here is getting potential customers [...]
  • Konstantinos: ...and one of your first readers from back then (Webvoice anyone?) is here to congratulate you and w [...]
  • Harun Akar: http://abnhost.com just started offering FogBugz hos [...]
  • Sergio Rebelo: "Do you mind hearing some situational irony? I found this entry through a google search." Yes... me [...]