protected void btnSubmit_Click(object sender, EventArgs e)
{
string proName = txtProName.Text;
string BigClassName = ddlProClass.SelectedValue.ToString();
string unit = txtUnit.Text;
string price = txtPrice.Text;
//string memo = Convert.ToString(txtMemo.Text.Replace("\r", "<br>"));
string memo = txtMemo.Text;
if(UpLoad_ProImg.HasFile)
{
//此处略.
}
else
{
//try
//{
//下面这个update语句错在哪里?
operate.executeNonQuery("update products set productName='" + proName + "',bigClassName='" + BigClassName + "',unit='" + unit + "',price=" + price + ",memo='" + memo + "' where articleID=" + articleID);
//}
//catch (Exception ex)
//{
// Response.Write(operate.ShowAlertMsg(ex.Message.ToString()));
//}
}
}
解决方案 »
- 请教Session的验证问题
- 关于 CustomValidator 的问题~
- 在此上下文中不允许使用 此处只允许使用常量、表达式或变量。不允许使用列名
- .net项目的划分问题, **************出手从来100分****************
- 在页面的后台使用static变量的问题
- 高手,斑竹,,帮帮忙,运行asp。net时iis出了问题??
- 请问在C#里面怎么判断一个COOKIES或SESSION是否存在?
- repeater 分页
- 如何获取数据库的用户表名?如何获取某张表的所有字段名?v
- 哪儿有控件属性方面的介绍???
- 在ASP.NET里的web.config里的连接字符里有*号这些特殊字符要怎么弄?
- 超级难问题,研究过petshop的来看
这里写错了
price='" + price + "',
多谢!!!!!!!!!!!!!!!!!!!!!!!!!!!!