Server Error in '/' Application.
在此上下文中不允许使用名称 "忘忧谷"。有效表达式包括常量、常量表达式和变量(在某些上下文中)。不允许使用列名。
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.SqlClient.SqlException: 在此上下文中不允许使用名称 "忘忧谷"。有效表达式包括常量、常量表达式和变量(在某些上下文中)。不允许使用列名。
Source Error:
Line 32: else
Line 33: {
Line 34: int rid = DataHelper.ExecuteNonQuery("1", "INSERT INTO [wap_bbs_favor] ([uid],[type],[name],[bbsid],[topic]) VALUES (" + NuoHa.MyId + ",4," + bname + "," + bid + ",0)");
Line 35: Response.Write("收藏成功!<a href=\"" + NuoHa.SitePath + "home/favor.aspx?id=" + rid + "" + NuoHa.String1 + "\">查看</a><br/>\r\n");
Line 36: }
Source File: d:\www\web\txqq789.com_cgopekleedexhf0t04oz\wwwroot\wml\bbs\family_favor.aspx.cs Line: 34
Stack Trace:
[SqlException (0x80131904): 在此上下文中不允许使用名称 "忘忧谷"。有效表达式包括常量、常量表达式和变量(在某些上下文中)。不允许使用列名。]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +212
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +81
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +551
System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +4120
System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite) +846
System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite) +269
System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +141
NuoHa.Data.DataHelper.ExecuteNonQuery(String ty, String sql) +206
bbs_family_favor.Page_Load(Object sender, EventArgs e) in d:\www\web\txqq789.com_cgopekleedexhf0t04oz\wwwroot\wml\bbs\family_favor.aspx.cs:34
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +85
System.Web.UI.Control.OnLoad(EventArgs e) +61
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2645
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34249