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:
- Right clicking on the project name (Ex: ‘WebApplication1)’ in Solution Explorer, and select ‘Properties’.
- From project properties window, under Common Properties>Designer Defaults>Page Layout change ‘Grid’ to ‘Flow’.
Share with