Visual Studio Changes my HTML

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Visual Studio 2003 constantly changes HTML on my webform - For the worse!
I've experienced this before, but now its really causing problems because it
wrecks the page. How do I prevent VS from modifying my HTML?

Specifically its changing an <object> within my page.

Thanks.
 
It's a very well known problem with VS2003. VS2005 doesn't have it.

In VS2003 it happens when you switch from html to design view. You can't
prevent it but you can try fixing the distortion. After you are done with
the design view, switch back to the html view and hit twice CtrlZ or
whatever else you have mapped as Undo. It should undo the last formatting
introduced by the VS and preserve the changes you've made in design view.

The best idea is not to use design view altogether, if you can.
 
Visual Studio 2003 constantly changes HTML on my webform - For the worse!

That's right! It was a total annoyance in the old version...!
I've experienced this before, but now its really causing problems because
it
wrecks the page. How do I prevent VS from modifying my HTML?

Unfortunately, you can't - at least not with VS.NET 2003. There are some
settings you can change in Tools, Options, Text Editor, HTML which help a
bit, but won't stop it completely.

This behaviour doesn't occur in VS.NET 2005...
 
Thank you both for the answers!

Mark Rae said:
That's right! It was a total annoyance in the old version...!


Unfortunately, you can't - at least not with VS.NET 2003. There are some
settings you can change in Tools, Options, Text Editor, HTML which help a
bit, but won't stop it completely.

This behaviour doesn't occur in VS.NET 2005...
 
Back
Top