Server Error in '/' Application.

DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'filePath'.

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: DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'filePath'.

Source Error:


Line 38:                                 <tr style="height: 30px;">
Line 39:                                     <td style="width: 30px; text-align: left; vertical-align: top;">
Line 40:                                        <asp:ImageButton ID="ImgPdf" runat="server" ImageUrl="Images/pdf.png" Width="25" Height="25" CommandArgument='<%# Eval("filePath") %>' OnClick="ImgPdf_Click" CausesValidation="false" />
Line 41:                                    </td>
Line 42:                                     <td style="width: 0px;">                         

Source File: C:\Inetpub\vhosts\hocviencsqg.com\httpdocs\ReadPDF.aspx    Line: 40

Stack Trace:


[HttpException (0x80004005): DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'filePath'.]
   System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName) +3950422
   System.Web.UI.DataBinder.Eval(Object container, String[] expressionParts) +95
   ASP.readpdf_aspx.__DataBinding__control5(Object sender, EventArgs e) in C:\Inetpub\vhosts\hocviencsqg.com\httpdocs\ReadPDF.aspx:40
   System.Web.UI.Control.OnDataBinding(EventArgs e) +100
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +178
   System.Web.UI.Control.DataBindChildren() +248
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +195
   System.Web.UI.WebControls.ListView.CreateItemsWithoutGroups(ListViewPagedDataSource dataSource, Boolean dataBinding, InsertItemPosition insertPosition, ArrayList keyArray) +1203
   System.Web.UI.WebControls.ListView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +1275
   System.Web.UI.WebControls.ListView.PerformDataBinding(IEnumerable data) +53
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +208
   System.Web.UI.WebControls.ListView.PerformSelect() +126
   HocVienCSQG.ReadPDF.pdfPopulation() +382
   HocVienCSQG.ReadPDF.Page_Load(Object sender, EventArgs e) +126
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0