Switching to design mode in VS2005 and repeaters

T

TheLongshot

I just recently converted a project from VS 2003 to VS 2005. The
problem I am having is that I have a lot of tables that are built as
repeaters in the code, like this one:

<asp:repeater id="rptrprerequisites" runat="server">
<HeaderTemplate>
<table width="100%" border="0" cellspacing="0" cellpadding="0"
class="mainContentTable" ID="Table23">
<tr>
<td width="0%" class="tableHead3">&nbsp;</td>
<td width="60%" class="tableHead3">Course Name</td>
<td width="25%" class="tableHead3">Course #</td>
<td width="15%" class="tableHead3">Required</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td width="0%" class="row2">&nbsp;</td>
<td width="60%" class="redEmp">
<%#DataBinder.Eval(Container.DataItem, "CourseTitle")%></td>
<td width="25%" class="row2"> <%#DataBinder.Eval(Container.DataItem,
"CourseNumber")%></td>
<td width="15%" align="center" class="redEmp">
<%#DataBinder.Eval(Container.DataItem, "Required")%></td>
</tr>
<tr>
<td colspan="6" class="rowDivider" height="1"></td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:repeater>

The problem is, I can't change into design mode because the editor
views this as invalid HTML because of the odd placement of the table
tags. How can I get around this?

Jason
 
T

TheLongshot

I checked it again. The problem comes when you have it inside another
table element. VS seems to think that that is the closing tag for the
table element on the outside, rather than part of the the Repeater
code.

Jason
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top