Click here to Skip to main content
16,021,041 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
ASP.NET
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</tr>
Posted
Updated 28-Jun-12 0:25am
v3

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.
 
Share this answer
 
Comments
[no name] 28-Jun-12 8:34am    
perfact !!!!! My 5+
Check column name Icon_Destination_Name in dataset or datadatable which you used for binding.column name is the issue i think
 
Share this answer
 
Comments
[no name] 28-Jun-12 8:34am    
my 5+
I think selection part does not having 'Icon_Destination_Name' column. Check for column name & alias for column in select part of query.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900