ASP.Net aspx markup

Posted by Batuta on Stack Overflow See other posts from Stack Overflow or by Batuta
Published on 2010-04-26T18:15:00Z Indexed on 2010/04/26 18:23 UTC
Read the original article Hit count: 115

Filed under:
|

I am working on some old web forms application.

When I changed from design to view source of the aspx page, the aspx markup becomes disarranged.

For example, a label is written as follows:

<asp:label id="Label20" 
           style="Z-INDEX: 119; LEFT: 16px; POSITION: absolute; TOP: 424px" 
           runat="server"
           Height="24px" Width="72px">Instructions:</asp:label>

It suddenly becomes like this (when I toggle from design to source)

<asp:label id="Label20" style="Z-INDEX: 119; LEFT: 16px; POSITION: absolute; TOP: 424px" runat="server"
                Height="24px" Width="72px">Instructions:</asp:label>

Notice that the alignment and margins, tab stops are changed. Any idea how to prevent VS from doing this?

Thanks.

© Stack Overflow or respective owner

Related posts about visual

Related posts about studio