Server Error in '/' Application.

Incorrect syntax near '='. (select * from Kampanyalar where Tekid=)

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: Incorrect syntax near '='. (select * from Kampanyalar where Tekid=)

Source Error:


Line 68:             catch (SqlException ex)
Line 69:             {
Line 70:                 throw new Exception(ex.Message + " (" + sql + ")");
Line 71: 
Line 72:             }

Source File: g:\pleskvhosts\rocksportgym.com\basakburcuemlak.com\App_Code\Fonksiyon.cs    Line: 70

Stack Trace:


[Exception: Incorrect syntax near '='. (select * from Kampanyalar where Tekid=)]
   Fonksiyon.Getdatatable(String sql) in g:\pleskvhosts\rocksportgym.com\basakburcuemlak.com\App_Code\Fonksiyon.cs:70
   Fonksiyon.Getdatarow(String sql) in g:\pleskvhosts\rocksportgym.com\basakburcuemlak.com\App_Code\Fonksiyon.cs:102
   KampanyaDetay.Page_Load(Object sender, EventArgs e) in g:\pleskvhosts\rocksportgym.com\basakburcuemlak.com\KampanyaDetay.aspx.cs:17
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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