2013-01-12 70 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

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