“/”应用程序中的服务器错误。

语法错误 (操作符丢失) 在查询表达式 'id=' 中。

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.Data.OleDb.OleDbException: 语法错误 (操作符丢失) 在查询表达式 'id=' 中。

源错误:


行 1:  <%@ Page Language="C#" Inherits="an.anWeb" %><%@ Import Namespace="System.Data" %><%PageDataSet = MyDataSet; %><script runat="server">protected override void OnLoad(EventArgs e){MyHashtable.Add("basic", "select * from An_Basic where id=1");header();footer();MyHashtable.Add("D8B322D6D47ECE4284D89FFC025E576C",CmdTextJoin("news","title",0,"false","","","20100,20200"));MyHashtable.Add("552D5C7A2C0B4FBE75F4FC713A2C8571",CmdTextJoin("news","title",0,"false","","","20200,20300"));MyHashtable.Add("C8D0529005B3BD729CE445FE29014324",CmdTextJoin("news","title",0,"false","","","20300,20400"));MyHashtable.Add("4B11546F08A0326AB50E5356FD6903AD",CmdTextJoin("news","title",0,"false","","","20400,20500"));MyHashtable.Add("3CCF2A0B795F3F88F6763774100ADA75",CmdTextJoin("news","title",0,"false","","","20500,20600"));MyHashtable.Add("63D5F6A360C5A3FB04389BE6B520106F",CmdTextJoin("news","title",0,"false","","","20600,20700"));MyHashtable.Add("newsview", "select news.typeid,news.title,news.body from An_T_news as news where id="+Rv("id")+"");}</script><%var newsview=MyRows("newsview");DataRow news_current=null;if(newsview!=null){news_current = newsview[0];}%><%var g=MyRows("basic")[0];%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
行 2:  <html xmlns="http://www.w3.org/1999/xhtml">
行 3:  <head>

源文件: d:\wwwroot\linxuan123\wwwroot\class.aspx    行: 1

堆栈跟踪:


[OleDbException (0x80040e14): 语法错误 (操作符丢失) 在查询表达式 'id=' 中。]
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) +1144660
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) +247
   System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +208
   System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +58
   System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +162
   System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) +110
   System.Data.OleDb.OleDbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +9
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +139
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +136
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +86
   an.helper.DbBasic.MyDataSet(Hashtable ht) in e:\wwwroot\code\19an\K_凯派装饰\code\an.helper3.6\Data\DbBasic.cs:898
   an.helper.DbShow.get_MyDataSet() in e:\wwwroot\code\19an\K_凯派装饰\code\an.helper3.6\DbShow.cs:213
   ASP.class_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in d:\wwwroot\linxuan123\wwwroot\class.aspx:1
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +268
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +13
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +66
   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) +1303


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.2634.0
<友情连结> 手机版/ EcoG溢柯/ 上海卉好园艺有限公司/ 隆景园艺/ 网址缩短/ 金诚表行/