第1行:','附近的语法不正确。字符前的未闭合引号...... [英] Line 1: Incorrect syntax near ','. Unclosed quotation mark before the character ...

查看:44
本文介绍了第1行:','附近的语法不正确。字符前的未闭合引号......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以查看我的代码并查看我可能缺少的信息。我收到以下错误:


第1行:'',''附近的语法不正确。字符串'')''之前的未闭合引号。在System.Data.SqlClient.SqlConnection.OnError(SqlExc主器件接收异常,布尔breakConnection)在System.Data.SqlClient.SqlInternalConnection.OnErro R(SqlException异常,布尔breakConnection)在System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning(TdsParserStateObject stateObj在System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior,SqlCommand cmdHandler,SqlDataReader dataStream,BulkCopySimpleResultSet bulkCopyHandler,TdsParserStateObject stateObj)处于System.Data的System.Data.SqlClient.SqlCommand.RunExecuteNonQuer yTds(String methodName,Boolean async)。 SqlClient.SqlCommand.InternalExecuteNo n查询(DbAsyncResult结果,字符串方法名,布尔sendToPipe)在System.Data.SqlClient.SqlCommand.ExecuteNonQuery()在_Default.SaveToDatabase(字符串SavePath)在C:\Inetpub\wwwroot\Webfile1\ Default.aspx.vb:第78行

展开 | 选择 | Wrap | <跨度类= codeLink 的onclick = LineNumbers(本);>行号

解决方案
我有以下代码

<跨度类= codeLink 的onclick =模糊(此,this.parentNode.parentNode,的getChildren (this),true);>展开 | 选择 <跨度类= codeDivider> | <跨度类= codeLink 的onclick = 自动换行(在此);>裹 <跨度类= codeDivider> | <跨度类=codeLinkonclick =LineNumbers(this);>行号


请不要双重发布你的问题附件。它将企图以有组织和有凝聚力的方式帮助您分开。您的线程已合并


我认为您的问题出现在上面发布的代码中的第75行和第76行:

< DIV类= codeHeader> <跨度类= codeLink 的onclick = 模糊(此,this.parentNode.parentNode,的getChildren(本),TRUE);>展开 <跨度类= codeDivider> | 选择 | Wrap | 行号

Can someone please review my code and see where I can be missing information. I get the following error:

Line 1: Incorrect syntax near '',''. Unclosed quotation mark before the character string '' )''. at System.Data.SqlClient.SqlConnection.OnError(SqlExc eption exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnErro r(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQuer yTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNo nQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at _Default.SaveToDatabase(String SavePath) in C:\Inetpub\wwwroot\Webfile1\Default.aspx.vb:line 78


Expand|Select|Wrap|Line Numbers

解决方案

I have the following code

Expand|Select|Wrap|Line Numbers


Please don''t double-post your questions. It divides attempts to help you in an organized and cohesive manner. Your threads have been merged


I think your problem is on lines 75 and 76 in the above posted code:

Expand|Select|Wrap|Line Numbers


这篇关于第1行:','附近的语法不正确。字符前的未闭合引号......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆