Server Error in '/' Application.

DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'ArtID'.

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 'ArtID'.

Source Error:


Line 39:         {
Line 40:             DListEmp.DataSource = dtable;
Line 41:             DListEmp.DataBind();
Line 42:         }
Line 43:         return dtable;

Source File: e:\hostingspaces\vithya\nac.org.kh\wwwroot\kh\ViewArticleByContent.aspx.cs    Line: 41

Stack Trace:


[HttpException (0x80004005): DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'ArtID'.]
   System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName) +2963169
   System.Web.UI.WebControls.DataList.CreateControlHierarchy(Boolean useDataSource) +582
   System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) +65
   System.Web.UI.WebControls.BaseDataList.DataBind() +84
   ViewArticleByContent.GetData(String SQLString) in e:\hostingspaces\vithya\nac.org.kh\wwwroot\kh\ViewArticleByContent.aspx.cs:41
   ViewArticleByContent.BindDataList(String SQLString) in e:\hostingspaces\vithya\nac.org.kh\wwwroot\kh\ViewArticleByContent.aspx.cs:49
   ViewArticleByContent.ddlContID_DataBound(Object sender, EventArgs e) in e:\hostingspaces\vithya\nac.org.kh\wwwroot\kh\ViewArticleByContent.aspx.cs:249
   System.Web.UI.WebControls.BaseDataBoundControl.OnDataBound(EventArgs e) +109
   System.Web.UI.WebControls.ListControl.PostPerformDataBindingAction() +65
   System.Web.UI.WebControls.ListControl.PerformSelect() +46
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +76
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +114
   System.Web.UI.WebControls.ListControl.OnPreRender(EventArgs e) +23
   System.Web.UI.Control.PreRenderRecursiveInternal() +90
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +906


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0