Repeater Problem

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
 

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