Server Error in '/' Application.

Syntax error (comma) in query expression 'ID = 14,14'.

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 (comma) in query expression 'ID = 14,14'.

Source Error:


Line 48:         Dim sql As String = "SELECT content FROM pagecontent where ID = " & indhold
Line 49:         dbcomm = New OleDbCommand(sql, dbconn)
Line 50:         Dim DS As OleDbDataReader = dbcomm.ExecuteReader()
Line 51: 
Line 52:         If DS.HasRows Then

Source File: d:\web\localuser\athing.dk\public_html\Default-snadde.aspx.vb    Line: 50

Stack Trace:


[OleDbException (0x80040e14): Syntax error (comma) in query expression 'ID = 14,14'.]
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) +1005724
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) +255
   System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +188
   System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +58
   System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +161
   System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) +116
   System.Data.OleDb.OleDbCommand.ExecuteReader() +6
   Default_snadde.hent_content() in d:\web\localuser\athing.dk\public_html\Default-snadde.aspx.vb:50
   Default_snadde.Page_Load(Object sender, EventArgs e) in d:\web\localuser\athing.dk\public_html\Default-snadde.aspx.vb:17
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8975