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
我敢保证数据库里面有这个列,这个问题是有时候会出现,但重新启动就不会出现这个问题。
说明: 执行当前 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
我敢保证数据库里面有这个列,这个问题是有时候会出现,但重新启动就不会出现这个问题。
解决方案 »
- B2B支付接口问题
- 时间问题,取某一星期几的日期
- 重装后VS2008安装错误Microsoft .net compact framwork 2.0 sp2 开始不能安装
- 除了了上传资料外,不知道在论坛里发贴回帖能不能挣得积分啊
- VS2005程序发布问题
- 有关页面OutputCache问题,怎么找到缓存存放的位置?
- 微软树控件问题,高手请进!
- javascript 中如何取得datagrid中checkbox控件列对象
- 我在作英文网页时遇到了问题请大家看看,本来一个小测试可以通过中英文的转换的目的,但是现在全站要通过英文网页形式展示给客户,该怎么作呀?
- 请问在模块里声明的public类型的变量,是应用程序级的变量吗?
- 我想问下vs2005拆分单元格问题
- 能在同一个页面内同时写两个GridView控件吗?
Framework 版本问题吧?
<a href='infor/video2.aspx?id=<%#Eval("HouseID") %>'><img alt="" src='../Admin/<%#Eval("HousePic") %>' width="122" height="82" border="0" /></a>
如上改成单引号。
看看SQL语句查询了HouseID字段没有。