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.Page_Load(Object sender, EventArgs e) in e:\hostingspaces\vithya\nac.org.kh\wwwroot\kh\ViewArticleByContent.aspx.cs:27
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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