Server Error in '/' Application.

Syntax error (missing operator) in query expression 'ID ='. (SELECT * FROM SANAYI_BIRIMI WHERE 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.Exception: Syntax error (missing operator) in query expression 'ID ='. (SELECT * FROM SANAYI_BIRIMI WHERE ID = )

Source Error:


Line 56:         catch (OleDbException ex)
Line 57:         {
Line 58:             throw new Exception(ex.Message + " (" + OleDb + ")");
Line 59:         }
Line 60:         adapter.Dispose();

Source File: d:\vhosts\batso.org.tr\httpdocs\App_Code\Araclar.cs    Line: 58

Stack Trace:


[Exception: Syntax error (missing operator) in query expression 'ID ='. (SELECT * FROM SANAYI_BIRIMI WHERE ID = )]
   Araclar.GetDataTable(String OleDb) in d:\vhosts\batso.org.tr\httpdocs\App_Code\Araclar.cs:58
   Araclar.GetDataRow(String OleDb) in d:\vhosts\batso.org.tr\httpdocs\App_Code\Araclar.cs:87
   tr_MansetDetay.Page_Load(Object sender, EventArgs e) in d:\vhosts\batso.org.tr\httpdocs\Sanayi.aspx.cs:17
   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.4690.0