For some reason VWD express 2010 keep messing up my HTMP page formatting. Below are examples of the before and after. If it is going to reformat my page code then at least it could do it so I can read it :) Can any one tell me why this is happening. I have gone through alll the 'text' setting in Text Editor under Options and have 'flipped' all the switches on each but nothing seems to stop this from happening.
Before:
<ajaxToolkit:ModalPopupExtender ID="ModalPopupExtenderMessage" runat="server" TargetControlID="ButtonHiddenMessage" PopupControlID="PanelMessage" BackgroundCssClass="modalBackground" DropShadow="true" OkControlID="submitButtonMessage" OnOkScript="okMessage()"
Enabled="True"/>
<asp:Panel ID="PanelMessage" runat="server" CssClass="modalPopup" Style="display: none" BackColor="White" HorizontalAlign="Left" Width="350px" Height="120px">
<asp:Panel ID="PanelDrag3" runat="server" Width="100%" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" BackColor="#66CCFF" ForeColor="White" HorizontalAlign="Center">
<b>Information</b>
</asp:Panel>
<asp:Table ID="TableMessage" runat="server" HorizontalAlign="Left" Width="100%" BackColor="White">
<asp:TableRow ID="TableRowMessage1" runat="server" VerticalAlign="Top" HorizontalAlign="Center" Width="100%">
<asp:TableCell ID="TableCellMessage1" runat="server" Width="100%" VerticalAlign="Top" HorizontalAlign="Center">
<br />
<asp:Label ID="PopupMessage" runat="server" ForeColor="Black"></asp:Label>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow ID="TableRowMessage2" runat="server" Width="100%" HorizontalAlign="Center" VerticalAlign="Middle">
<asp:TableCell ID="TableCellMessage2" runat="server" HorizontalAlign="Center" VerticalAlign="Middle" Width="100%">
<br />
<asp:Button Cssclass="hooverbutton" ID="submitButtonMessage" runat="server" Text="Ok" TabIndex="1" />
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</asp:Panel>
</asp:Content>
AFTER:
<ajaxToolkit:ModalPopupExtender ID="ModalPopupExtenderMessage" runat="server" TargetControlID="ButtonHiddenMessage" PopupControlID="PanelMessage" BackgroundCssClass="modalBackground" DropShadow="true" OkControlID="submitButtonMessage" OnOkScript="okMessage()"
Enabled="True"/>
<asp:Panel ID="PanelMessage" runat="server" CssClass="modalPopup" Style="display: none" BackColor="White" HorizontalAlign="Left" Width="350px" Height="120px">
<asp:Panel ID="PanelDrag3" runat="server" Width="100%" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" BackColor="#66CCFF" ForeColor="White" HorizontalAlign="Center">
<b>Information</b> </asp:Panel><asp:Table ID="TableMessage" runat="server" HorizontalAlign="Left" Width="100%" BackColor="White">
<asp:TableRow ID="TableRowMessage1" runat="server" VerticalAlign="Top" HorizontalAlign="Center" Width="100%">
<asp:TableCell ID="TableCellMessage1" runat="server" Width="100%" VerticalAlign="Top" HorizontalAlign="Center">
<br />
<asp:Label ID="PopupMessage" runat="server" ForeColor="Black"></asp:Label>
</asp:TableCell></asp:TableRow><asp:TableRow ID="TableRowMessage2" runat="server" Width="100%" HorizontalAlign="Center" VerticalAlign="Middle">
<asp:TableCell ID="TableCellMessage2" runat="server" HorizontalAlign="Center" VerticalAlign="Middle" Width="100%">
<br />
<asp:Button Cssclass="hooverbutton" ID="submitButtonMessage" runat="server" Text="Ok" TabIndex="1" />
</asp:TableCell></asp:TableRow></asp:Table></asp:Panel></asp:Content>
It is very frustrating when I am trying to make changes and read the code ... each time I end up reformatting it so I can work with the code, and then after I save it it keeps reformatting back to this 'garbage' format thast is almost unreadable.