G
Gary Coutts
Hi,
This is a newbie question.
I am have problem with a Repeater Control that is based on the help files
that came with Visual Studio, see below:
<p><asp:Repeater ID="myReapter" runat="server">
<HeaderTemplate>
<table width="400" border="1">
(Error 1)
<tr>
<th>Employee ID</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
(Error 2)
<%# DataBinder.Eval(Container.DataItem,"EmployeeID") %>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
</p>
I am getting two errors:
Error 1:
"Within a server element, the element 'table' is missing its closing tag or
overlaps with element <HeaderTemplate>"
and
Error 2:
"Per the active schema, the element 'tr' cannot be nested within <p>"
Can anyone tell me what I am doing wrong.
Cheers
gwc
This is a newbie question.
I am have problem with a Repeater Control that is based on the help files
that came with Visual Studio, see below:
<p><asp:Repeater ID="myReapter" runat="server">
<HeaderTemplate>
<table width="400" border="1">
(Error 1)
<tr>
<th>Employee ID</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
(Error 2)
<%# DataBinder.Eval(Container.DataItem,"EmployeeID") %>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
</p>
I am getting two errors:
Error 1:
"Within a server element, the element 'table' is missing its closing tag or
overlaps with element <HeaderTemplate>"
and
Error 2:
"Per the active schema, the element 'tr' cannot be nested within <p>"
Can anyone tell me what I am doing wrong.
Cheers
gwc