protected void btnNext_Click(object sender, EventArgs e) { BEStudent objBEStudent = new BEStudent(); BStudent objBStudent = new BStudent(); objBEStudent.IntUserID = Convert.ToInt32(Session[EnumPageSessions.USERID].ToString()); objBEStudent.IntTransID = Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString())); objBStudent.BCheckexamiKEY(objBEStudent); if (objBEStudent.DtResult != null && objBEStudent.DtResult.Rows.Count > 0) { if (Convert.ToBoolean(objBEStudent.DtResult.Rows[0]["ExamiKey"]) == true) { Response.Redirect("StudentexamiKEY.aspx?TransID=" + Request.QueryString["TransID"].ToString(), false); } else { Response.Redirect("StudentAgreements.aspx?TransID=" + Request.QueryString["TransID"].ToString(), false); } } }