Server Error in '/' Application.

Syntax error (missing operator) in query expression 'id='.

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.OleDb.OleDbException: Syntax error (missing operator) in query expression 'id='.

Source Error:


Line 31:         Me.AccessDataSource2.UpdateCommand = "UPDATE news SET  [gia] = " & _count & " where id=" & Me.Request("id")
Line 32: 
Line 33:         Me.AccessDataSource2.Update()
Line 34: 
Line 35: 

Source File: D:\vhosts\vietmatkinh.com\httpdocs\user_control\video_content.ascx    Line: 33

Stack Trace:


[OleDbException (0x80040e14): Syntax error (missing operator) in query expression 'id='.]
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) +1217017
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) +256
   System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +216
   System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +60
   System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +164
   System.Data.OleDb.OleDbCommand.ExecuteNonQuery() +112
   System.Web.UI.WebControls.SqlDataSourceView.ExecuteDbCommand(DbCommand command, DataSourceOperation operation) +400
   System.Web.UI.WebControls.SqlDataSourceView.ExecuteUpdate(IDictionary keys, IDictionary values, IDictionary oldValues) +704
   System.Web.UI.WebControls.SqlDataSource.Update() +26
   ASP.video_content.Page_Load(Object sender, EventArgs e) in D:\vhosts\vietmatkinh.com\httpdocs\user_control\video_content.ascx:33
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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