|
The relevant code is as follows:
comm1.CommandText = "update article set content = '" + newContent + "' where articleid =" + id "";
try
{
comm1.ExecuteNonQuery ();
}
catch (Exception)
{
throw;
}
Syntax error (operator missing) in query expression '' <P align = center>
<OBJECT codeBase = http: //download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0 height = 360 width = 480 classid = clsid: D27CDB6E-AE6D-11cf -96B8-444553540000> <PARAM NAME = "_ cx" VALUE =&quo '.
Brothers, what's going on? (Where newContent is a string, the value is: <P align = center>
<OBJECT codeBase = http: //download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0 height = 360 width = 480 classid = clsid: D27CDB6E-AE6D-11cf -96B8-444553540000> <PARAM NAME = "_ cx" VALUE = "12700"> <PARAM NAME = "_ cy" VALUE = "9525"> <PARAM NAME = "FlashVars" VALUE = ""> <PARAM NAME = "Movie" VALUE = "http://swf.xyx007.com/yx007-swf/20169/4/201694125028.swf"> <PARAM NAME = "Src" VALUE = "http://swf.xyx007.com/yx007-swf/ 20169/4 / 201694125028.swf "> <PARAM NAME =" WMode "VALUE =" Window "> <PARAM NAME =" Play "VALUE ="-1 "> <PARAM NAME =" Loop "VALUE ="-1 "> <PARAM NAME = "Quality" VALUE = "Low"> <PARAM NAME = "SAlign" VALUE = ""> <PARAM NAME = "Menu" VALUE = "-1"> <PARAM NAME = "Base" VALUE = "" > <PARAM NAME = "AllowScriptAccess" VALUE = ""> <PARAM NAME = "Scale" VALUE = "ShowAll"> <PARAM NAME = "DeviceFont" VALUE = "0"> <PARAM NAME = "EmbedMovie" VALUE = "0 "> <PARAM NAME =" BGColor "VALUE =" "> <PARAM NAME =" SWRemote "VALUE =" "> <PARAM NAME =" MovieData "VALUE =" "> <PARAM NAME =" SeamlessTabbing "VALUE =" 1 " > <PARAM NAME = "Profile" VALUE = "0"> <PARAM NAME = "ProfileAddress" VA LUE = ""> <PARAM NAME = "ProfilePort" VALUE = "0">
<embed src = 'http: //swf.xyx007.com/yx007-swf/20169/4/201694125028.swf' type = 'application / x-shockwave-flash' pluginspage = 'http: //www.macromedia.com / go / getflashplayer 'quality =' high 'width =' 480 'height =' 360 '> </ embed> </ OBJECT> </ P> |
|