Groups | Blog | Home
all groups > dotnet faqs > december 2004 >

dotnet faqs : Visual Studio .Net trashes HTML code in ASP.Net projects


Tom Wells
12/30/2004 10:43:28 AM
I am using Visual Studio .NET 2003 ver 7.1.3088
When developing ASP.NET projects and switching between HTML and Design views
on the aspx files, the editor trashes my HTML. I can think of no reason a
<BR> tag should end up looking like:
<BR
[quoted text, click to view]
Is there a valid reason why the toggling between views causes so many of my
tags to be split? What is up with how my indentation is being stripped out?
<TABLE>
<TR>
<TD>
</TD>
</TR>
<TABLE>
should not end up as:
<TABLE>
<TR>
<TD></TD>
</TR><TABLE>

I searched the help files for a solution to this stupid, destructive
behaviour but could not find anything that worked. Anyone know a solution?
Thanks!
Tom

Dino Chiesa [Microsoft]
1/3/2005 3:33:10 PM
No.

The next version is supposed to be friendlier to your own code.

-D


[quoted text, click to view]

Flip
1/4/2005 11:27:17 AM
I'm by no means an expert on this, but something came to mind when I saw the
BR split like that. Try using the self closing xml tag? Try the <br/> or
the <br /> (yup, the space is the only thing different). Not sure if it'll
work but maybe the code parser is hiccuping on the closing >?

I'm like you, I've been extremely frustrated by VS' code mangling. :<

AddThis Social Bookmark Button