Live Chat Icon For mobile
Live Chat Icon

How to make VS.Net use FlowLayout as the default layout rather than the GridLayout

Platform: ASP.NET| Category: Basic

For VB.NET, go to path C:\Program Files\Microsoft Visual Studio .NET\Vb7\VBWizards\WebForm\Templates\1033

Change the following line in the existing WebForm1.aspx


<body MS_POSITIONING='[!output DEFAULT_HTML_LAYOUT]'>

to


<body>

For C#, go to path C:\Program Files\Microsoft Visual Studio .NET 2003\VC#\VC#Wizards\CSharpWebAppWiz\Templates\1033

Change the following line in the existing WebForm1.aspx


<body MS_POSITIONING='[!output DEFAULT_HTML_LAYOUT]'>

to


<body>

Note:Before changing any templates it’s a good idea to make backup copies of them
Or rather than above approach you can change the behavior for new files on a per project basis in Visual Studio by:

  1. Right clicking on the project name (Ex: ‘WebApplication1)’ in Solution Explorer, and select ‘Properties’.
  2. From project properties window, under Common Properties>Designer Defaults>Page Layout change ‘Grid’ to ‘Flow’.

Share with

Share on twitter
Share on facebook
Share on linkedin