这个问题怎么解决?
“/”应用程序中的服务器错误。________________________________________
DataBinding:“System.Data.DataRowView”不包含名为“HouseID”的属性。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.Web.HttpException: DataBinding:“System.Data.DataRowView”不包含名为“HouseID”的属性。
源错误:
行 176: <div class="list_top">
行 177: <div class="shop_pic">
行 178: <a href="infor/video2.aspx?id=<%#Eval("HouseID") %>"><img alt="" src="../Admin/<%#Eval("HousePic") %>" width="122" height="82" border="0" /></a>
行 179: </div>
行 180: <div class="shop_text">
源文件: d:\wwwroot\ynfww\web\ycc\index.aspx 行: 178
堆栈跟踪:
[HttpException (0x80004005): DataBinding:“System.Data.DataRowView”不包含名为“HouseID”的属性。]
System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName) +8663061
System.Web.UI.DataBinder.Eval(Object container, String[] expressionParts) +92
System.Web.UI.DataBinder.Eval(Object container, String expression) +106
System.Web.UI.TemplateControl.Eval(String expression) +40
ASP.ycc_index_aspx.__DataBind__control69(Object sender, EventArgs e) in d:\wwwroot\ynfww\web\ycc\index.aspx:178
System.Web.UI.Control.OnDataBinding(EventArgs e) +99
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +92
System.Web.UI.Control.DataBind() +15
System.Web.UI.Control.DataBindChildren() +211
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
System.Web.UI.Control.DataBind() +15
System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +124
System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +443
System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +51
System.Web.UI.WebControls.Repeater.DataBind() +75
Estate.Web.ycc.index.Data_Bind() in F:\2010年10月29\ycfc\Estate.Web\ycc\index.aspx.cs:127
Estate.Web.ycc.index.Page_Load(Object sender, EventArgs e) in F:\2010年10月29\ycfc\Estate.Web\ycc\index.aspx.cs:65
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) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
________________________________________
版本信息: Microsoft .NET Framework 版本:2.0.50727.3615; ASP.NET 版本:2.0.50727.3618
--------------------编程问答-------------------- System.Data.DataRowView”不包含名为“HouseID”的属性
写的很明白了 --------------------编程问答-------------------- DataBinding:“System.Data.DataRowView”不包含名为“HouseID”的属性。
不是都已经告诉你了吗?数据源里没有“HouseID”这个列,但是你绑定的时候却绑了这个列。 --------------------编程问答-------------------- 列名绑错了 好好 看看 你数据库里的列名是什么 --------------------编程问答-------------------- 网站已经上传到服务器上了,这个字段是有的,不时不时的会出现这个问题,重新运行就不会出现这个错误了。 --------------------编程问答-------------------- --------------------编程问答-------------------- 是不是你读取数据的时候,没要读取HouseID这个字段。 --------------------编程问答-------------------- 我是用select * from ,,,,读取的,所有的都读取, --------------------编程问答-------------------- 希望各位高手帮帮忙,小弟是个新手,谢谢了~
补充:.NET技术 , ASP.NET