delete from  zw_info where (id = " + int.Parse(txtId.Value) + "); 
-------------------------
这个可以直接删除??汗。

解决方案 »

  1.   

    用string idlist=Request.Form["ChkSelect"]//ChkSelect  是客户ID然后
    Delete from XX  where id in ("+idlist+");
      

  2.   

    delete from  zw_info where (id = " + int.Parse(txtId.Value) + "); 
    -----------------------------
    这个肯定删除不了,可以用sqlcommand来删除
      

  3.   

     DB.ExecuteSql("delete from  zw_info where id in( " + int.Parse(txtId.Value) + ")"); 
    这是删除的代码,我给函数给去了,
      

  4.   

    我把chb.Checked == true什么也删除不了
    改为chb.Checked == false能删除但是有的选中没有删,没有选中的却删了郁闷,为什么呀,帮看看是怎么回事呀