The IDE reformats my HTML when I switch from source to design and back. It doesn't do it every time, just at certain times. For example, it does it after I pull a textbox from the toolbox and insert it into a table. I can't find the option that tells VS 2005 IDE to leave the HTML formatting unaltered. For example, I coded this:
<div>
<table cellpadding="2" cellspacing="1" width="600px">
<tr>
<td>My Prediction</td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</div>
After I insert a textbox control it reformats the HTML into a SINGLE LINE:
<div><TABLE>cellpadding="2" cellspacing="1" width="600px"><tr><td>My Prediction</td>...etc...
In addition, it converts some tags to upper case. It also adds a <TBODY> tag.
Is there an option that tells the IDE not to reformat the HTML?
I am using some AJAX. Could that be a factor?
Gary Frank