Master/Detail Form

khalil213

New Member
I am building a Master/detail form and got this weird error:<BR><BR>BC30456: 'DataItem' is not a member of 'System.Web.UI.Control'.<BR><BR>Source Error:<BR><BR><BR>Line 73:<BR>Line 74: <ItemTemplate><BR>Line 75: <li><%# Container.DataItem( "BroadcastName" ) %><BR>Line 76: - <%# String.Format( "{0:c}", Container.DataItem( "sent" ) ) %><BR>Line 77: </ItemTemplate><BR><BR><BR>what can I do to fix this? I am writing this from the book ASP.NET Unleashed.Don't forget to import System.Data at the top of your page...<BR><BR><%@ Import Namespace="System.Data" %><BR><%@ Import Namespace="System.Data.OleDb" %>I still get the same error even after adding <BR><%@ Import Namespace="System.Data" %>
 
Back
Top