2013-01-12 53 views
-1

以下代碼給我一個錯誤;C#錯誤語法錯誤爲','

dt = sFunctions.ExecuteQuery(Variables.con, "House_Machinery", "usp_housemachinery_Master_insert" + Id + ",'" + txtItemName.Text + "'," + txthp.Text + "," + txtrate.Text + "," + Variables.sTendercode + "," + Variables.StrResourceHeaderCode); 
       sFunctions.setSqldbConnCommand_Close(sSqldbCommand); 

附近有語法錯誤 ''

誰能給這個見解?

回答

2

這可能是因爲存儲過程

dt = sFunctions.ExecuteQuery(Variables.con, "House_Machinery", 
    "usp_housemachinery_Master_insert " + Id 

我也建議你考慮以下方法來消除這種類型的問題後缺少空間:

+0

哦,非常感謝你,它工作得很好 –