ClanKiller.com
http://forums.clankiller.com/

ASP.NET C# Templates using class inheritance
http://forums.clankiller.com/viewtopic.php?f=24&t=2008
Page 1 of 1

Author:  Satis [ Mon Oct 09, 2006 6:34 am ]
Post subject:  ASP.NET C# Templates using class inheritance

I've recently been learning C# with ASP.NET and thought I would share one of the more handy tutorials I found online. This one specifically deals with website templating (ie, predefining headers, menus, and footers external to your actual site). The method used is ingenious and shed some light on the inner workings of c# in asp.net for me. The link follows:

http://www.codeproject.com/aspnet/page_templates.asp

Basically what they do is create a site-wide class, then override the default System.Web.UI.Page renderer to automatically output the template as part of the default web page rendering. Whcih basically means that pages consisting of just the markup for your page content can be created.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/