Click here to Skip to main content
14,383,822 members
Rate this:
Please Sign up or sign in to vote.
See more:
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 'Icon_Destination_Name'.
 
Source Error:
 

Line 331:                               <tr>
Line 332:                                   <td width="15%" style="border: 1px solid #aaa; padding: 2px 5px 2px 5px" align="center">
Line 333:                                       <asp:Image runat="server" ID="imgBook" ImageUrl='<%#DataBinder.Eval(Container.DataItem,"Icon_Destination_Name")%>'
Line 334:                                           Width="50px" Height="50px" />
Line 335:                                   </td>
 
Source File: f:\DigiLib_Initial\DigiLib\LibraryManagement\LibraryManagement\Pages\Default.aspx    Line: 333
 
Stack Trace:
 

[HttpException (0x80004005): DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'Icon_Destination_Name'.]
   System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName) +8809677
   System.Web.UI.DataBinder.Eval(Object container, String[] expressionParts) +92
   System.Web.UI.DataBinder.Eval(Object container, String expression) +93
   ASP.pages_default_aspx.__DataBinding__control15(Object sender, EventArgs e) in f:\DigiLib_Initial\DigiLib\LibraryManagement\LibraryManagement\Pages\Default.aspx:333
   System.Web.UI.Control.OnDataBinding(EventArgs e) +91
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +92
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.WebControls.GridView.CreateRow(Int32 rowIndex, Int32 dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, Boolean dataBind, Object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource) +166
   System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +3896
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +66
   System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data) +14
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +128
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +33
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
   System.Web.UI.WebControls.GridView.DataBind() +4
   LibraryManagement._Default.Page_Load(Object sender, EventArgs e) in F:\DigiLib_Initial\DigiLib\LibraryManagement\LibraryManagement\Pages\Default.aspx.cs:54
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207
Posted
Updated 27-Oct-19 17:00pm
v2
Rate this:
Please Sign up or sign in to vote.

Solution 1

The error says that the field name 'Icon_Destination_Name' is not available in the datasource that you are binding.
Please verify all the column names in your datasource.
   
Rate this:
Please Sign up or sign in to vote.

Solution 2

This means that 'Icon_Destination_Name' column is not present in the datasource.
Have you made sure that your datasource with which you are associating the image control has the column 'Icon_Destination_Name' ?
Check the query in your database whether all the required columns are getting returned.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100