Welcome to Community Server Sign in | Join | Help

Change WebForm's pageLayout to Flow forever

I don't know who likes Grid layout by default, I'm not sure I even like Designer as the default/initial view for WebForms. You can change this setting in the project's properties dialog. Which I think I've now done a thousand times (or so it seems).

Silly not to have fixed it forever already. Go to Microsoft Visual Studio .NET 2003\VC#\VC#Wizards (assuming default install directory, go where you need to for your version/install of VS.NET). Open DefaultWebProject.csproj, add the following attribute line to VisualStudioProject/CSHARP/Build/Settings.

DefaultHTMLPageLayout = "Flow"

Save, done. Only tested on my two installs, 1.1, ymmv (but it's easy enough to correct if it goes awry or so I presume).

The VB.NET point of insertion would be along the lines of Microsoft Visual Studio .NET 2003\Vb7\VBWizards\WebApplication\Templates\1033, WebApplication.vbproj, VisualStudioProject/VisualBasic/Build/Settings, or so I surmise.

Published Friday, April 04, 2003 10:57 PM by grant
Filed Under:

Comments

Tuesday, May 04, 2004 9:44 PM by grant

# Making Flow layout your default in VS.NET

Wednesday, May 05, 2004 9:56 AM by grant

# Get With the Flow

Wednesday, May 05, 2004 10:28 AM by grant

# re: Change WebForm's pageLayout to Flow forever

Wednesday, May 05, 2004 11:06 AM by grant

# re: Change WebForm's pageLayout to Flow forever

1. Modifying "DefaultWebProject.csproj" works only for the projects created AFTER this modification. If you want to apply this also for your current projects, you have to modify "<YourProjectName.csproj" file

2. Instead of "Flow" you can try "0" ("1" is for grid layout)
Wednesday, May 05, 2004 11:25 AM by grant

# re: Change WebForm's pageLayout to Flow forever

Or visually by right clicking on the project in Solution Explorer, then:

Properties -> Common Properties -> Designer Defaults -> Web Designers -> Page Layout -> Flow
Friday, May 07, 2004 3:41 PM by grant

# Change Webforms Default PageLayout to Flow Forever

Sunday, May 09, 2004 5:49 PM by grant

# re: Change WebForm's pageLayout to Flow forever

Nice, but could someone please tell me how Microsoft got the default ASP.NET HTML templates to not be valid HTML? Did they really think 'MS_POSITIONING' was a standard HTML attribute, or what? Is it really that hard to read the specifications? I just wonder...
Anonymous comments are disabled