It is currently Thu Mar 28, 2024 2:42 pm



Reply to topic  [ 1 post ] 
ASP.NET C# Templates using class inheritance 
Author Message
Felix Rex
User avatar

Joined: Fri Mar 28, 2003 6:01 pm
Posts: 16646
Location: On a slope
Reply with quote
Post 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.

_________________
They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety.


Mon Oct 09, 2006 6:34 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware.