ASP.NET Page Templates…..


ASP.NET Page Template techniques has become a hot button issue among ASP.NET developers. I’ve done a bit of research on the topic so I thought I would list the articles I read during my research to save you folks a bit of time:


http://www.codeproject.com/aspnet/page_templates.asp
http://www.devarticles.com/art/1/304/3
http://aspalliance.com/articles/templates.aspx
http://aspalliance.com/PaulWilson/Articles/?id=1
http://aspalliance.com/PaulWilson/Articles/?id=2
http://aspalliance.com/PaulWilson/Articles/?id=3
http://www.wilsondotnet.com/Demos/Generator.aspx
http://www.aspalliance.com/Mamanze/articles/default.aspx?path=PageTemplate
http://aspalliance.com/mamanze/articles/?path=pagetemplate3
http://aspalliance.com/shark/articles/Uct/UctDoc.aspx
http://aspalliance.com/wisemonk/view.aspx?id=AN090302
http://www.aspalliance.com/stevesmith/articles/netreuse1.asp
http://www.devhawk.net/projects/PageLayoutCtl.aspx


Now, which one is best? Well, I think that depends on what other things you plan to do with your pages. The techniques above vary in complexity, implementation, and how they perform in the VS.NET designer. Check out all of the techniques and let us know how they work for you by posting a comment. I’m sure we’d all love to know if you have other techniques that we should hear about (give us a comment!).


Comments (4)

  1. Anonymous says:

    This on going thread is full of ideas, examples, input, etc on Page Templates:

    http://asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=4692

  2. Anonymous says:

    This on going thread is full of ideas, examples, input, etc on Page Templates:

    http://asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=4692

  3. Anonymous says:

    I’ve gotta plug Xheo.WebSkin here. This is the easiest way to template a website. Period.

    <waits />

    Who said you could argue with me? lol.

    Paul Alexander is probably one of the smartest guys in .NET/XML development. I had never dealt with XML in depth before, and I was able to completely template my <asp:shamelessplug Url="http://www.interscapeusa.com">company website </asp:shamelessplug> in about 2 1/2 hours. I ABSOLUTELY LOVE completely separating my content from my design, especially with the number of pages my site is growing to. (you wouldn’t know it by the number of links that are live, but just wait till VSLive!)

    Anyway, it’s well worth checking out: Xheo.Webskin

  4. Anonymous says:

    I used Ryan Trudelle-Schwarz’s (Mamanze’s) version, which worked pretty well. I did convert the code into VB.net, which was a little tricky due to my lack of knowledge regarding C# keywords.

    Overall, the implementation works pretty well and still allows the use of the visual design features in VS.NET.