Visual Studio Changes my HTML

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.
 
E

Eliyahu Goldin

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.
 
M

Mark Rae

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...
 
G

Guest

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,538
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top