日期:2014-05-18 浏览次数:20512 次
protected void gvTourInfo_RowCommand(object sender, GridViewCommandEventArgs e) { Business busi = new Business(); if (e.CommandName == "Delete") { int ID = Convert.ToInt32(e.CommandArgument); if (busi.DelectYudingInfo(ID) > 0) { Response.Write("<script> alert('你已删除成功!'); </script>"); } else { Response.Write("<script> alert('删除失败!'); </script>"); } } this.gvTourInfo.EditIndex = -1; BindData(); }