there is not wrong in your code ,please check it ,and restart vs2008 later ,good luck

解决方案 »

  1.   

    Boolean revalue = CC.ExecSQL("delete  from zhaopin where id=" + e.CommandArgument.ToString());
            if (revalue == true)
                Page.RegisterClientScriptBlock("clientscript", " <script>confirm('你确定要删除') </script>");
    这样已经删除了,为啥还要问<script>confirm('你确定要删除') </script>?
      

  2.   

    http://topic.csdn.net/t/20050513/17/4005106.html
      

  3.   

     Page.RegisterClientScriptBlock("clientscript", " <script>confirm('你确定要删除') </script>"); 
    如果你希望在删除之前提醒的话,在前台写,点击按钮的时候触发,然后function btnclcik()
    {
       if(window.confirm("你确定要删除?"))
       return true;
       else
       return false;
    }
    这样点取消的话就会去执行这个按钮点击事件的后台代码
      

  4.   

    点击删除之后出现无法显示网页,可能是网络问题或404错误! 
    您可以尝试刷新此链接: 
    http://localhost:1059/jzdzr/houtai/zpgl.aspx 
      

  5.   

    this.DataList1.DataBind(); 
    在这一步之前请重新绑定下删除更新后的数据!!