protected void Verify_Click(object sender, EventArgs e) { // if (this.rbval_text == "") { this.rbval_text = "Accepted"; } //this.c_mark = this.z.getMarkInfoByUserID(this.pID); //string repname = c_rep.xname; //string repemail = c_aos.email1; //var vapplicant = z.getApplicant(c_mark.log_staff); //TmOffice toffice = z.getLastTmOfficeByID(c_mark.log_staff); //string oldstatus = ""; //string olddatastatus = ""; //if (toffice != null) //{ // oldstatus = z.getCurrentStage2(toffice); // olddatastatus = toffice.data_status; //} this.succ = this.z.a_tm_office(this.c_mark.log_staff, this.admin_status, this.rbValid.SelectedValue, this.comment.Text, "", "", "", this.admin); if (this.succ != "0") { z.AppealRejection2(appealupload.id, this.admin, DateTime.Now.ToString(), this.rbValid.SelectedValue); // z.sendemail2(repname, c_mark, repemail, this.comment.Text, this.admin_status, this.admin_status, oldstatus, olddatastatus); base.Response.Write("<script language=JavaScript>alert('Data verified successfully')</script>"); base.Response.Redirect("./AppealRejection.aspx"); } else { base.Response.Write("<script language=JavaScript>alert('Data not verified, Please try again later')</script>"); } // }