Server Error in '/' Application.

关键字 'order' 附近有语法错误。

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.Exception: 关键字 'order' 附近有语法错误。

Source Error:


Line 123:	{
Line 124:		 Bll.Articles mybllarticle = new Bll.Articles();
Line 125:		 DataSet ds1 = mybllarticle.GetList(1,"atype=" + typeid + "");
Line 126:        if (ds1.Tables[0].Rows.Count==0)
Line 127:        {

Source File: d:\webroot\gxuu\news.aspx.cs    Line: 125

Stack Trace:


[Exception: 关键字 'order' 附近有语法错误。]
   Dal.BaseSql.Query(String SQLString) +293
   Dal.Articles.GetList(Int32 pCount, String strWhere) +282
   Bll.Articles.GetList(Int32 pCount, String strWhere) +57
   news.ProductFlag(String typeid) in d:\webroot\gxuu\news.aspx.cs:125
   ASP.news_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in d:\webroot\gxuu\news.aspx:90
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +109
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3060


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