Forum Moderators: open

Message Too Old, No Replies

MS Visual Studio .NET adding code and changing layout

theres gotta be a way to stop this!

         

buksida

11:49 am on Oct 27, 2004 (gmt 0)

10+ Year Member



Have recently started using MS Vis Studio (Developer Environment) to work on a site that was previously designed with it. I have been using Dreamweaver for years and am still loyal to it.

On this I have noticed that it adds extra code such as table and image id's [ id="Table6" ] and <TBODY> tags that I've never used before. It also changes the layout of the code in HTML view to suit itself (usually lining it up for "neatness")

How can I turn this off and code exactly how I want to and not how it wants to. Its changes are affecting the layout of my pages.

Is the only answer to use a text editor?

MozMan

9:48 pm on Oct 27, 2004 (gmt 0)

10+ Year Member



Yeah-

You want to go to Tools-->Options

Then, in the Text Editor-->HTML/XML folder, play around with the Tabs, Format and HTML Specific settings... in fact, look at some of the items under General and All Languages as well.

You may also need to look in the HTML Designer folder.

hth

-Moz.

buksida

10:03 am on Oct 28, 2004 (gmt 0)

10+ Year Member



Had a fiddle in there but it generally made things worse so I had to set it back.

What its doing specifically is keep stacking up a bunch of <li></li> items that i dont want lined up as they're part of a CSS menu whos appearance is affected by the layout of the code.

I get it how I want it, then VS changes it back .... very annoying.

raywood

2:08 pm on Oct 28, 2004 (gmt 0)

10+ Year Member



I always have trouble with layout too. You should understand the difference between grid layout and flow layout in Visual Studio. I think the default setting is flow layout on all pages. VS explains it in the help files.

jfelt521

6:13 pm on Oct 31, 2004 (gmt 0)

10+ Year Member



If you add code that VS doesn't like then it won't change the layout on you. I have used a little trick of adding <%# %> tags in something such as an <img> tag.
i.e <IMG height="24" src="images/top_02-2.gif" width="754" <%# likethis %>>
Then in your code behind you create a Function that returns a empty string (or anything you want for that matter).
However, when you do this you won't be able to use the VS WSIWYG editor. You will have to do all of your visual editing in Dreamweaver.