: System.Data.SqlClient.SqlException: ')'附近有错
部分代码
cmd.Parameters["ProjectID"].Value = this.Request.QueryString["id"];
cmd.Parameters["StartEmail"].Value = User.Identity.Name.ToString();
cmd.Parameters["QuestionTheme"].Value = theme.Value;
cmd.Parameters["WhatYes"].Value = ((HtmlTextArea)this.FindControl("textarea"+1+(9*(i-1)))).Value;
cmd.Parameters["WhatNo"].Value = ((HtmlTextArea)this.FindControl("textarea" +2 + (9 * (i - 1)))).Value;
cmd.Parameters["WhatDifference"].Value = ((HtmlTextArea)this.FindControl("textarea" + 3 + (9 * (i - 1)))).Value;
cmd.Parameters["WhatChange"].Value = ((HtmlTextArea)this.FindControl("textarea" + 4 + (9 * (i - 1)))).Value;
cmd.Parameters["PossibleCause"].Value = ((HtmlTextArea)this.FindControl("textarea" + 5 + (9 * (i - 1)))).Value;
cmd.Parameters["NoReason"].Value = ((HtmlTextArea)this.FindControl("textarea" + 6 + (9 * (i - 1)))).Value;
cmd.Parameters["IfPossible"].Value = ((HtmlTextArea)this.FindControl("textarea" + 7 + (9 * (i - 1)))).Value;
cmd.Parameters["MostYes"].Value = ((HtmlTextArea)this.FindControl("textarea" + 8 + (9 * (i - 1)))).Value;
cmd.Parameters["MostNo"].Value = ((HtmlTextArea)this.FindControl("textarea" + 9 + (9 * (i - 1)))).Value;
cmd.Parameters["MostReason"].Value = ((HtmlTextArea)this.FindControl("txt")).Value;
cmd.CommandText = Strsql;
cmd.ExecuteNonQuery();//说这边有错 我看不出来 求帮忙
父爱如山黄旭东
10 years, 9 months ago