Create a class in your ASP.net Project and have it inherit from the Page object like this:
Public Class cMyTemplate : Inherits System.Web.UI.Page
then you'll need to override teh Render method like so
Protected Overrides Sub Render(ByVal writer As System.Web.UI.HtmlTextWriter)
'Create your header here with response.writes etc etc
'create your footer here
When you add a new webform to the project, look in the code behind file. You'll see at the top that it inherits from System.Web.UI.Page. Change System.Web.UI.Page to cMyTemplate (or whatever you called it).
Now, when your new webform is rendered, it will write out a header, write out whatever is in the webform (that's the mybase.render ) and then render out a footer.
It's quick and fast. Also, if you look at teh IBuySpy portal example, they give you a another way to do similar things with WebUserControls. A Web usercontrol is similar to an Include fiel in ASP 3.0
"Jordan Marton" <JMartonHAHAmarketaxess.com> wrote in message news:Op3rtuoVDHA.2260TK2MSFTNGP09.phx.gbl...
> Hi There!
> This is my first post to these newsgroups, so I hope I'm asking in the right
> place. I am currently a comfrotable ASP 3.0 developer, and use Dreamweaver
> MX and Access databases to make my sites. One of the handiest features of DW
> was templates, as it enabled me to keep all pages constant.
> As I am now learning ASP.NET and have just purchased VisualBasic.Net 2003, I
> was wondering if it is possible to achieve the same sort of "template" site
> design as I am yused to.
> I understand that user controls can be included on every page, and therefor
> I'd only have to edit each control to change the site. But I mean if I need
> to add an additional user control to every page, then thats a lot harder
> than addining a new control once to the main template and having all other
> pages inherit that.
> Any ideas comments suggestions?
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ([url]http://www.grisoft.com[/url]).
Version: 6.0.504 / Virus Database: 302 - Release Date: 7/24/2003