Search

Designer re-formats HTML code when using Master Page by Joshua Flanagan

Closed
as Fixed Help for as Fixed

1
Sign in to vote
0
Sign in to vote
Sign in
to vote
Type: Bug
ID: 110961
Opened: 11/15/2005 4:39:07 PM
Access Restriction: Public
0
Workaround(s)
0
User(s) can reproduce this bug
Using the designer to edit a WebForm with a master page will reformat the HTML code in the Source view. The reformatted code does not appear to follow any settings.
Details (expand)
Product Language
English
Version
Visual Studio 2005
Category
ASP.NET Development
Operating System
Windows XP Professional
Operating System Language
US English
Steps to Reproduce
1) Create a new empty ASP.NET website
2) Add a master page (MasterPage.master)
3) Add a WebForm (Default.aspx) and check the box to select a master - choose MasterPage.master
4) Open the HTML source view of Default.aspx and add the following within the asp:Content tags:

<ul>
<li><a href="Default.asp">Red</a></li>
<li><a href="Default.asp">Green</a></li>
<li><a href="Default.asp">Blue</a></li>
<li><a href="Default.asp">Alpha</a></li>
</ul>

5) Switch to designer - confirm the list looks correct, switch back to HTML source, confirm source looks correct.
6) Switch to designer - edit the list (for example, add an 's' to Blue to make it Blues). switch back to HTML source view
Actual Results
The HTML has be reformatted so all list items are on a single line:

<ul>
<li><a href="Default.aspx">Red</a></li><li><a href="Default.aspx">Green</a></li><li><a href="Default.aspx">Blue</a>s</li><li><a href="Default.aspx">Alpha</a></li></ul>
Expected Results
The HTML source should not have been reformatted or changed (except for the additions added in the designer).
File Attachments
0 attachments
Sign in to post a comment.
Posted by Microsoft on 11/15/2005 at 9:18 PM
Thank you for your feedback. We are investigating this issue.

Thank you, VS2005 Product Team.
Posted by Microsoft on 2/2/2006 at 5:50 PM
The Microsoft Sub-status is now "Investigating"
Posted by Microsoft on 2/5/2006 at 6:06 PM
The Microsoft Sub-status is now "Working on solution"
Posted by Microsoft on 2/6/2006 at 3:58 PM
Thanks for submitting this. The problem has been fixed in future releases.

Thanks,
Web Platform & Tools Team
Posted by Microsoft on 1/17/2007 at 1:52 AM
Thank you for submitting this issue. The bug has been resolved Fixed, and its resolution shipped as part of Visual Studio 2005 Service Pack 1 (SP1).

You can download SP1 at http://msdn.microsoft.com/vstudio/support/vs2005sp1/default.aspx. If installing SP1 does not resolve the issue for you, please reactivate.

Thanks again for your feedback!
-Scott Currie
-DDTFA Program Manager