Server Error in '/' Application.

Cannot find column [ParentID].

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.Data.EvaluateException: Cannot find column [ParentID].

Source Error:


Line 78:         "cd.Name as MenuName from Category c join Category_Description cd on c.ID = cd.ID and cd.languageID = @LanguageID order by [Order]";
Line 79:         DataTable dt = DatabaseAccessObject.ExecuteDataTable(CommandType.Text, sql1, sqlParam);
Line 80:         DataRow[] drowpar = dt.Select(("ParentID=0 and DisplayOnTop=1"));
Line 81: 
Line 82: 

Source File: d:\Tms.com.vn\MasterPage.master.cs    Line: 80

Stack Trace:


[EvaluateException: Cannot find column [ParentID].]
   System.Data.NameNode.Bind(DataTable table, List`1 list) +2479674
   System.Data.BinaryNode.Bind(DataTable table, List`1 list) +49
   System.Data.BinaryNode.Bind(DataTable table, List`1 list) +49
   System.Data.DataExpression.Bind(DataTable table) +118
   System.Data.Select..ctor(DataTable table, String filterExpression, String sort, DataViewRowState recordStates) +134
   System.Data.DataTable.Select(String filterExpression) +194
   MasterPage.getMenu() in d:\Tms.com.vn\MasterPage.master.cs:80
   MasterPage.Page_Load(Object sender, EventArgs e) in d:\Tms.com.vn\MasterPage.master.cs:45
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.UI.Control.LoadRecursive() +71
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3048


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