.Net Template problem...

stradf

New Member
I created a aspx page, which runs a query (a join on 2 tables).<BR> <BR>It works when AutoGenerateGrid="True" but when i put in a simple template it gives me an error as follows:<BR> <BR>Compiler Error Message: BC30456: 'DataItem' is not a member of 'System.Web.UI.Control'.<BR><BR>Line 34: <asp:Repeater id="DataGrid1" runat="server"/><BR>Line 35: <ItemTemplate><BR>Line 36: <%# DataBinder.Eval(Container.DataItem, "fprogram") %><BR>Line 37: </ItemTemplate><BR>Line 38: <asp:Repeater/><BR><BR>I think the code is correct, could it be that my .Net installation is missing something???<BR><BR>Thanks in advance.
 
Back
Top