DataBinding:“System.Data.DataRowView”不包含名为“DtId”的属性。
行 207: <asp:Image ID="Image9" runat="server" ImageUrl="~/fore/images/best.gif" /></td>行 208: <td style="width: 170px">
行 209: <a href="Boat.aspx?DtId=<%#Eval("DtId") %>">
行 210: <%#Eval("Title") %>
行 211: </a>
源文件: e:\House\Web\fore\MasterPage.master 行: 209
堆栈跟踪:
[HttpException (0x80004005): DataBinding:“System.Data.DataRowView”不包含名为“DtId”的属性。]
System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName) +198
System.Web.UI.DataBinder.Eval(Object container, String[] expressionParts) +60
System.Web.UI.DataBinder.Eval(Object container, String expression) +75
System.Web.UI.TemplateControl.Eval(String expression) +120
ASP.fore_masterpage_master.__DataBind__control9(Object sender, EventArgs e) in e:\House\Web\fore\MasterPage.master:209
System.Web.UI.Control.OnDataBinding(EventArgs e) +80
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +198
System.Web.UI.Control.DataBind() +12
System.Web.UI.Control.DataBindChildren() +214
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +208
System.Web.UI.Control.DataBind() +12
System.Web.UI.WebControls.DataList.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +130
System.Web.UI.WebControls.DataList.CreateControlHierarchy(Boolean useDataSource) +620
System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) +57
System.Web.UI.WebControls.BaseDataList.DataBind() +62
System.Web.UI.WebControls.BaseDataList.EnsureDataBound() +55
System.Web.UI.WebControls.BaseDataList.CreateChildControls() +62
System.Web.UI.Control.EnsureChildControls() +97
System.Web.UI.Control.PreRenderRecursiveInternal() +50
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5676
--------------------编程问答-------------------- 检查下字段名写错了没有,应该是失误
补充:.NET技术 , C#