Server Error in '/' Application.

Incorrect syntax near '='.

SQL: select ShopDefaultCustomer from tblShopID where ShopID=

Name:dlookup

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 '='.

SQL: select ShopDefaultCustomer from tblShopID where ShopID=

Name:dlookup

Source Error:


Line 110:                name), ex.InnerException);
Line 111:
Line 112:            throw ex_detailed;
Line 113:
Line 114:        }

Source File: c:\inetpub\wwwroot\www.doorlineshop.dk\App_Code\Tools.cs    Line: 112

Stack Trace:


[Exception: Incorrect syntax near '='.

SQL: select ShopDefaultCustomer from tblShopID where ShopID=

Name:dlookup]
   Tools.GetDataTable(String SQL, String name) in c:\inetpub\wwwroot\www.doorlineshop.dk\App_Code\Tools.cs:112
   Tools.Dlookup(String field, String table, String where) in c:\inetpub\wwwroot\www.doorlineshop.dk\App_Code\Tools.cs:256
   MasterPage.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\www.doorlineshop.dk\Doorline.master.cs:91
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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