Server Error in '/' Application.

Incorrect syntax near '='.

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.SqlClient.SqlException: Incorrect syntax near '='.

Source Error:


Line 187:        catch (Exception ex)
Line 188:        {
Line 189:            throw ex;
Line 190:        }
Line 191:        finally

Source File: d:\Inetpub\wwwroot\server88\algerianembassy\App_Code\main.cs    Line: 189

Stack Trace:


[SqlException (0x80131904): Incorrect syntax near '='.]
   main.getcatName(String cId) in d:\Inetpub\wwwroot\server88\algerianembassy\App_Code\main.cs:189
   article_news.getrightcat(String cid) in d:\Inetpub\wwwroot\server88\algerianembassy\article\news.aspx.cs:218
   article_news.Page_Load(Object sender, EventArgs e) in d:\Inetpub\wwwroot\server88\algerianembassy\article\news.aspx.cs:44
   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.4676.0