.net网站问题
Server Error in '/Activity/2012/0810DTJQ' Application.
DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'name'.
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 'name'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'name'.]
System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName) +8683949
System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName, String format) +8
System.Web.UI.WebControls.ListControl.PerformDataBinding(IEnumerable dataSource) +349
System.Web.UI.WebControls.ListControl.OnDataBinding(EventArgs e) +109
System.Web.UI.WebControls.ListControl.PerformSelect() +34
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +66
System.Web.UI.WebControls.ListControl.OnPreRender(EventArgs e) +29
System.Web.UI.Control.PreRenderRecursiveInternal() +103
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
总是偶尔报错这个不知道为什么出错求答案求解决方案求教大神
------解决方案--------------------
说明数据源中没有name这个字段或者属性,一般是使用static关键字或者并发导致。