Wednesday, December 15, 2004

VS.NET: Clean Web Form Templates

If your a web site designer/developer like I am, you know that VisualStudio.NET 2003 is great for coding a nightmare for design! One of the problems (and there are many) is the default web form template. When you add a new ASPX web form to a project, you get all sorts of proprietary META tags and the like. Most of these tags are either worthless to a designer or just allow VS.NET to further mess-up your HTML page.

For a very good article on this, reference Milan Negovan's article, "Remastering Web Form Templates". His article points-out many of the frustrations of the VS.NET web form designer, and provides a link to a tool he created that can help you generate clean web form templates.

However, I find that going to his web site to use his tool wasn't likely going to happen (I'm too lazy!)... I wanted to know if I could modify the default VS.NET template so it always creates exactly what I want. I found the default ASPX web form template (VB) here:

C:\Program Files\Microsoft Visual Studio .NET 2003\Vb7\VBWizards\WebForm\Templates\1033\WebForm.aspx

I removed the default VS.NET specific meta tags and added my own, such as a copyright, author, etc. Need some help coming-up with the default META tags? Try AnyBrowser.com.

No comments: