http://topic.csdn.net/u/20091210/17/7265b711-d5f4-4260-9929-675e208aa3a5.html?seed=1072344725&r=61820563#r_61820563   这个是注入问题, 大家都推荐你,说你经验丰富,帮我指点下,谢谢。

解决方案 »

  1.   

    http://topic.csdn.net/u/20090729/14/26381958-0d6e-4b90-bc90-d275e9621f93.html
      

  2.   

    string aa = this.TextBox1.Text;
            string bb = aa.Replace("'", "''");
            string objole;
            objole = "update tb set info='" + bb + "' where id=2";
    我这样写有什么问题那?  为什么我添加到数据库里还是单引号?没有过滤掉?
      

  3.   

    你的String bb==aa.Replace("'",""");
    不是有带了一个单引号了吗
      

  4.   

    you  are stringbuilder sb=new you