namespace error?

stdio

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><BR>Line 36: <%# DataBinder.Eval(Container.DataItem, "fprogram") %><BR> <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.Do I need to import a separate namespace for template display.
 
Back
Top