|
Repeaters in Tables
Date: 01/26/06
(Asp Dot Net) Keywords: html, database, asp, sql, web
Ok... Apparently I'm getting a brain cramp here..
I'm trying to get a repeater to work on an ASP.Net page in a table. For some reason even though I have an example copied DIRECTLY from a website I can't get the damn thing to work properly. I keep getting errors on the HTML side saying like, "Per the active schema, the element 'tr' cannot be nested within 'form'.", and "The active schema does not support the element 'ItemTemplate'.
And when the page is run, I get the error: 'DataItem' is not a member of 'System.Web.UI.Control'.
Here's part of the code. Its not 100% complete because this problem is preventing me from proceeding in testing.
form id="Form1" method="post" runat="server">
asp:Repeater id="parentRepeater" runat="server">
HeaderTemplate> table> tr bgcolor="RosyBrown"> th> %# DataBinder.Eval(Container.DataItem, "infoName") %> /th> /tr> /HeaderTemplate>
ItemTemplate> tr bgcolor="#ffcccc"> td Performance Objectives/td> /tr> tr> td objectives/td> /tr> tr> td Intended Audience/td> /tr> tr> td> <%# DataBinder.Eval(Container.DataItem, "infoIntendAud") %> /td> |