For Programmers: Free Programming Magazines  


Home > Archive > Visual Studio > November 2005 > vs 2003, asp.net, leave my body tag alone









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author vs 2003, asp.net, leave my body tag alone
Lew Burrus

2005-11-16, 7:03 pm

Why is the HTML designer in VS 2004 rewriting my body tags from this

<body style="BACKGROUND-COLOR: <%=appColor%>">

to this

<body>

??? I understand that IE is essential in the html creation, but does it
have to overwrite my own code every time I take a look at the page in
the design tab? Is there any way to disable this behavior? And will it
continue in 2005?

Lew Burrus
Axel Dahmen

2005-11-17, 7:58 am

There is an option to stop VS from trying to touch your HTML: "Tools -
Options - Text editor - HTML - Format - Apply Automatic Formatting" .. Just
uncheck both checkboxes.

Still there is a bug(or a feature?) in VS2003 making it scramble your HTML
when switching to design mode if you haven't saved your HTML. So always save
your .aspx file before switching to design mode.

HTH,
Axel Dahmen


----------------
"Lew Burrus" <versed@virginia.edu> wrote in message
news:uufTi3r6FHA.3044@TK2MSFTNGP10.phx.gbl...
> Why is the HTML designer in VS 2004 rewriting my body tags from this
>
> <body style="BACKGROUND-COLOR: <%=appColor%>">
>
> to this
>
> <body>
>
> ??? I understand that IE is essential in the html creation, but does it
> have to overwrite my own code every time I take a look at the page in
> the design tab? Is there any way to disable this behavior? And will it
> continue in 2005?
>
> Lew Burrus



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com