Microsoft KB Archive/821344

= BUG: When You Resize an HTML Table Control, the HTML Editor Does Not Add the Tag with the Tag =

Article ID: 821344

Article Last Modified on 5/16/2007

-

APPLIES TO


 * Microsoft ASP.NET 1.1
 * Microsoft ASP.NET 1.0

-



SYMPTOMS
When you resize the HTML table in Design view of Visual Studio .NET, and the table has the THEAD element and the TFOOT element, the HTML editor inserts the tag in the table automatically. However, the editor does not add the corresponding tag.



WORKAROUND
To work around this problem, make sure that you add the tag manually when the tag is added automatically to the table in the HTML file. You must add these tags in pairs to avoid creating a malformed HTML file.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.



Steps to Reproduce the Behavior
 Start Microsoft Visual Studio .NET. Create a new ASP.NET Web Application project in the following location: http://localhost/TestTable. By default, WebForm1.aspx is created. Drag a TABLE control from the HTML tab in the toolbox to WebForm1. In Design view, right-click WebForm1.aspx, and then click View HTML Source. In WebForm1.aspx, add the THEAD element and the TFOOT element to the table.  Paste the following sample code to complete the code of WebForm1.aspx: <%@ Page%> <HTML> <HEAD> WebForm1 <meta name=&quot;vs_targetSchema&quot; content=&quot;http://schemas.microsoft.com/intellisense/ie5&quot;> </HEAD> <body MS_POSITIONING=&quot;GridLayout&quot;> <form id=&quot;WebForm1&quot; method=&quot;post&quot; runat=&quot;server&quot;> <TABLE id=&quot;Table1&quot; style=&quot;Z-INDEX: 101; LEFT: 57px; WIDTH: 292px; POSITION: absolute; TOP: 216px; HEIGHT: 91px&quot; cellSpacing=&quot;1&quot; cellPadding=&quot;1&quot; width=&quot;292&quot; border=&quot;1&quot;> <THEAD> <TR> <TD>Table Head</TD> </TR> </THEAD> <TR> <TD></TD> </TR> <TFOOT> <TR> <TD>Table Footer</TD> </TR> </TFOOT> </TABLE> </HTML> </li> In HTML view, right-click WebForm1.aspx, and then click View Design.</li> Make sure that the table header and the table footer appear correctly.</li> Drag the lower right corner of the TABLE control to resize the table.</li> In Design view, right-click WebForm1.aspx, and then click View HTML Source.

</li> Notice that the HTML editor has added the tag automatically. However, the HTML editor has not added the corresponding tag to the code.</li></ol>

<div class="references_section">