解决方案 »

  1.   

    在upwd前加个逗号。set设置列要用逗号分开
      

  2.   

    列与列之间差逗号,where前面差空格
    出现错误的时候调试一下,查看strSql 结果然后复制到Sql manager里面执行一下不就知道了
      

  3.   

    断点到那里,执行到那里查看一下strSql 是什么
      

  4.   

    String strSql = "update TUser set  uName = '" + name + "' , uPwd  = '" + pwd + "' where  userId = '" + id + "' ";记得后台拼sql语句的时候,每个关键字中间都要加空格,set多列要加逗号.
    你有2个地方没有加空格,一个地方没有加逗号语句帮你改好了,在上面
      

  5.   

    where前面空格还是漏了。。String strSql = "update TUser set  uName = '" + name + "'  ,  uPwd  = '" + pwd + "'   where  userId = '" + id + "' ";
      

  6.   

    更新SQL示例
    SqlData da = new SqlData();
    string P_str_Com = "update TUser set uName='" + this.Name.Text + "',uPwd='" + this.pwd.Text + "'"
                + " where ID='" + Request["ID"] + "'";

    bool add = da.ExceSQL(P_str_Com);
    if (add == true)
    {
    Response.Write("<script language=javascript>alert('更新信息成功!');location='AdminManage.aspx'</script>");
    }
      

  7.   

    String strSql = "update TUser set  uName = '" + name + ",'uPwd  = '" + pwd + "' where  userId = '" + id + "' ";
      

  8.   

    大家都挺热心的,SQL语句都已经改好了