'System.Data.DataRowView' does not contain a property with the name LastDate.
-
VS 2003, sql server I get the following error: DataBinder.Eval: 'System.Data.DataRowView' does not contain a property with the name LastDate. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: DataBinder.Eval: 'System.Data.DataRowView' does not contain a property with the name LastDate. Source Error: Line 73: <%# DataBinder.Eval(Container.DataItem,"LastDate","{0:MM/dd/yyyy}") %> My view is as follows: CREATE VIEW dbo.vFieldReport AS SELECT dbo.Borrower.BName, dbo.FieldReports.CIF, dbo.FieldReports.FRID, dbo.FieldReports.LastDate, dbo.FieldReports.DueDate, dbo.FieldReports.Overide, dbo.FieldReports.NewDueDate, dbo.FieldReports.Freq, dbo.FieldReports.DepthLevel, dbo.FieldReports.OrderDate, dbo.FieldReports.comments, dbo.FieldReports.RiskRating, dbo.FieldReports.UCSClass, dbo.Loans.LoanNo FROM dbo.Borrower INNER JOIN dbo.FieldReports ON dbo.Borrower.CIF = dbo.FieldReports.CIF CROSS JOIN dbo.Loans My FieldReports Table is as follows: Column Name Data Type Length Allow Nulls LastDate dateTime 8 Yes Here is the whole error code: Server Error in '/COMS' Application. -------------------------------------------------------------------------------- DataBinder.Eval: 'System.Data.DataRowView' does not contain a property with the name LastDate. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: DataBinder.Eval: 'System.Data.DataRowView' does not contain a property with the name LastDate. Source Error: Line 71: Line 72: Line 73: <%# DataBinder.Eval(Container.DataItem,"LastDate","{0:MM/dd/yyyy}") %> Line 74: Line 75: Source File: c:\inetpub\wwwroot\COMS\FieldReport.aspx Line: 73 Stack Trace: [HttpException (0x80004005): DataBinder.Eval: 'System.Data.DataRowView' does not contain a property with the name LastDate.] System.Web.UI.DataBinder.GetPropertyValue(Obj