Erik Porter's Blog

Life and Development at Microsoft and Other Technology Discussions

News

    Advanced Templates and Skinning in ASP.NET Presentation

    Last week I gave the presentation at our user group meeting.  The code and Powerpoint slides are now up for you to check out if you're interested.  I basically went through how to setup a base template, use it, then create multiple skins the user can select on top of it.

    Download here

    Hope someone gets some use out of it...I know we have!  :)

    Comments

    Scott Watermasysk said:

    I used a similar approach in the past (actually might be going back to it soon).

    I had a base set of usercontrols that acted like my templates. I then overrode AddParsedSubObject and took whatever I found in the .aspx page and loaded it to my template.

    protected override void AddParsedSubObject(object control)
    {
    LoadTemplate();
    LoadBodyControl((Control)control);

    }

    -Scott
    # November 20, 2003 4:26 PM

    HumanCompiler said:

    Yup, cool, that's what I'm doing, except in a different place. :)
    # November 20, 2003 4:29 PM