//取消执行 protected void bt_Cancel_Click(object sender, EventArgs e) { EWF_TaskBLL task = new EWF_TaskBLL((int)ViewState["TaskID"]); task.Cancel(); MessageBox.ShowAndRedirect(this, "流程已被取消执行!!", "../desktop.aspx"); }