Server Error in '/' Application.

Syntax error (missing operator) in query expression 'ID = 1178?pid=1178'.

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 = 1178?pid=1178'.

Source Error:


Line 1522:            sSQL = "Select * From [Property] WHERE ID = " + sID;// +iUserID;
Line 1523:            SQLCom = new OleDbCommand(sSQL, SQLCon);
Line 1524:            SQLDR = SQLCom.ExecuteReader();
Line 1525:
Line 1526:            if (SQLDR.HasRows)

Source File: \\hp3-winc2-smb1.hostingp3.local\domainsx\890\1947890\user\htdocs\App_Code\ContentManager.cs    Line: 1524

Stack Trace:


[OleDbException (0x80040e14): Syntax error (missing operator) in query expression 'ID = 1178?pid=1178'.]
   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.ExecuteReader(CommandBehavior behavior) +115
   System.Data.OleDb.OleDbCommand.ExecuteReader() +12
   MainSite.ContentManager.Property_GetProperty(String sID) in \\hp3-winc2-smb1.hostingp3.local\domainsx\890\1947890\user\htdocs\App_Code\ContentManager.cs:1524
   EstateAgents.Page_Load(Object sender, EventArgs e) in \\hp3-winc2-smb1.hostingp3.local\domainsx\890\1947890\user\htdocs\brochure\default.aspx.cs: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.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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