Jeff Key has a handy tip on removing the /// comments for the default C# project templates in VS 2003. While I don’t like the comments, my pet peeve is that ASP.NET uses “Grid” layout by default. For your sanity, below are the directions for how to “go with the flow”.
Changing ASP.NET Pages from grid layout to flow layout
- Navigate to the following directory: “C:\Program Files\Microsoft Visual Studio .NET 2003\VC#\VC#Wizards\CSharpAddWebFormWiz\Templates\1033” (assuming C: installation and english version (aka 1033)
- Before changing any templates it’s a good idea to make backup copies of them :)
- Open “webform1.aspx” using Notepad, and remove the MS_POSITIONING attribute from the body tag as shown below:
<%@** **Page language="c#” Codebehind="$FILENAME$.cs” AutoEventWireup="false” Inherits="$INHERITS$” %>
****
**
**<body MS_POSITIONING=”[!output DEFAULT_HTML_LAYOUT]“>