本文介绍了数据绑定:"System.Data.DataRowView"不包含名称为"Icon_Destination_Name"的属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我收到此错误.我该怎么办?
错误:
HI i am getting this error . what should i do?
Error:
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
推荐答案
这篇关于数据绑定:"System.Data.DataRowView"不包含名称为"Icon_Destination_Name"的属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!