Saturday, March 24, 2012

VS 2005 - page layout on asp.net pages [solved]

When I create a new web project in VS 2005, the controls placed on the page kind of just go right next to the last one and layout is difficult.
Is there any way to set it to a grid style layout, basically place the controls wherever you want and they stay there, like in 2003?Open your VS 2005 Environment and then open the project you want (Web project).

go to Tools -> Options

Make sure "Show all settings" at the bottom is checked

click the plus next to HTML Designer

click on CSS Positioning

check the first checkbox then make sure the dropdown is set to "Absolutely positioned"
If you want to nurture bad coding standards and skills in you, go for the '2003' way (GridLayout). It is a layout created for absolute amateurs. No professional developer would be caught dead using this, unless they had schizophrenia.

Part of being a web developer is learning proper web standards, so to align your controls, use tables or divs and CSS.

0 comments:

Post a Comment