protected void gvExamStatus_ItemCommand(object sender, GridCommandEventArgs e) { if (e.CommandName == "view") { Response.Redirect("AdminViewExamScreens.aspx?TransID=" + AppSecurity.Encrypt(e.CommandArgument.ToString()) + "&Type=View", false); } }
protected void btnValidate_Click(object sender, EventArgs e) { BEStudent objbestudent = new BEStudent() { strPassword = txtCode.Text.Trim(), IntTransID = Convert.ToInt64(ViewState["TransID"]) }; BStudent objbstudent = new BStudent(); objbstudent.BValidateAuthenticationCode(objbestudent); if (objbestudent.IntResult == 1) { tbl1.Visible = false; tbl2.Visible = false; tbl3.Visible = true; lblresult.Text = "Code successfully verified."; BEStudent objBEStudent = new BEStudent(); BStudent objBStudent = new BStudent(); objBEStudent.IntTransID = Convert.ToInt64(ViewState["TransID"]); objBEStudent.IntType = 16; objBStudent.BUpdatePLTime(objBEStudent); Response.Redirect("Agreements.aspx?TransID=" + AppSecurity.Encrypt(ViewState["TransID"].ToString()), false); } else { tbl1.Visible = false; tbl2.Visible = true; tbl3.Visible = true; lblresult.Text = "Invalid code, please try again."; txtCode.Text = ""; } }
protected void gvTransDetails_ItemCommand(object sender, GridCommandEventArgs e) { if (e.CommandName.ToString() == "View") { Response.Redirect("ViewExamScreens.aspx?TransID=" + AppSecurity.Encrypt(e.CommandArgument.ToString()) + "&" + Request.QueryString.ToString() + "&" + "Type=View2"); } }
protected void btnBack_Click(object sender, EventArgs e) { try { if (Request.QueryString["Type"] == "ViewDetails" & Request.QueryString["TransID"] != null) { string a = Session[BaseClass.EnumPageSessions.StudentID].ToString(); //Response.Redirect("~/Auditor/ViewStudentDetails.aspx?Type=P&StudentID=" + AppSecurity.Encrypt(Session[BaseClass.EnumPageSessions.StudentID].ToString()), false); Response.Redirect("ViewStudentDetails.aspx?Type=P&" + AppSecurity.Encrypt("StudentID=" + Session[BaseClass.EnumPageSessions.StudentID].ToString()), false); } else if (Request.QueryString["Type"] == "View" & Request.QueryString["TransID"] != null) { Response.Redirect("~/Auditor/ProcessedExamRequests.aspx", false); } else if (Request.QueryString["TransID"] != null) { Response.Redirect(BaseClass.EnumAppPage.PROCTOR_AUTOPROCTORINBOX); } } catch (Exception) { //ErrorLog.WriteError(Ex); } }
protected void gvCourseDetails_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e) { if (e.CommandName.ToString() == "ExpandCollapse" && !e.Item.Expanded) { foreach (GridItem item in e.Item.OwnerTableView.Items) { if (item.Expanded && item != e.Item) { item.Expanded = false; } } hdExpandValue.Value = e.Item.ItemIndex.ToString(); //RadGrid innerGrid = (e.Item as GridDataItem).ChildItem.FindControl("gvEnrollments") as RadGrid; //ImageButton ImgStudentID = (e.Item as GridDataItem).FindControl("BtnEditStudent") as ImageButton; //Label lblStatus = (Label)e.Item.FindControl("lblStatus"); //this.GetStudentEnrollments(innerGrid, ImgStudentID.CommandArgument.ToString(), lblStatus.Text); } else if (e.CommandName.ToString() == "ExpandCollapse" && e.Item.Expanded) { hdExpandValue.Value = "-1"; } else if (e.CommandName.ToString() == "View") { ImageButton ImgStudentID = (e.Item as GridDataItem).FindControl("BtnEditStudent") as ImageButton; Response.Redirect("ViewStudent.aspx?StudentID=" + AppSecurity.Encrypt(e.CommandArgument.ToString())); } }
protected void gvStartExam_ItemCommand(object sender, GridCommandEventArgs e) { string[] commandArgs = e.CommandArgument.ToString().Split(new char[] { ',' }); if (commandArgs[1].ToString() == "5") // LEVEL AA { if (commandArgs[2].ToString() != "1") { Session["isexamiFACE"] = "0"; Response.Redirect("Systemreadiness.aspx?TransID=" + AppSecurity.Encrypt(commandArgs[0].ToString()), false); } else { Session["isexamiFACE"] = "0"; Response.Redirect("Systemreadiness.aspx?TransID=" + AppSecurity.Encrypt(commandArgs[0].ToString()), false); } } else { BEStudent objBEStudent = new BEStudent(); BStudent objBStudent = new BStudent(); objBEStudent.IntUserID = Convert.ToInt32(Session[EnumPageSessions.USERID].ToString()); objBEStudent.IntTransID = Convert.ToInt64(commandArgs[0].ToString()); objBStudent.BCheckExamStartTime(objBEStudent); if (objBEStudent.DtResult != null && objBEStudent.DtResult.Rows.Count > 0) { if (Convert.ToInt32(objBEStudent.DtResult.Rows[0]["Result"]) == 1) { objBStudent.BSetStudentStartExamFlag(objBEStudent); if (Convert.ToBoolean(objBEStudent.DtResult.Rows[0]["isexamiFACE"]) == true) { Session["isexamiFACE"] = "1"; this.CaptureOsAndBrowser(Convert.ToInt64(commandArgs[0].ToString())); Response.Redirect("Systemreadiness.aspx?TransID=" + AppSecurity.Encrypt(commandArgs[0].ToString()), false); } else if (Convert.ToBoolean(objBEStudent.DtResult.Rows[0]["ExamiKey"]) == true) { Session["isexamiFACE"] = "0"; this.CaptureOsAndBrowser(Convert.ToInt64(commandArgs[0].ToString())); Response.Redirect("StudentExamProcess.aspx?TransID=" + AppSecurity.Encrypt(commandArgs[0].ToString()) + "&&ExamiKEY=" + AppSecurity.Encrypt("1"), false); } else { Session["isexamiFACE"] = "0"; this.CaptureOsAndBrowser(Convert.ToInt64(commandArgs[0].ToString())); Response.Redirect("StudentExamProcess.aspx?TransID=" + AppSecurity.Encrypt(commandArgs[0].ToString()) + "&&ExamiKEY=" + AppSecurity.Encrypt("0"), false); } tderror.Visible = false; } else { tderror.Visible = true; lblError.Text = "<img src='../Images/no.png'align='middle'/> <font color='red'>" + Resources.ResMessages.Student_checkStartTime + "</font>"; } } } }
protected void hplnkUnScheduledAppointments_Click(object sender, EventArgs e) { LinkButton lnkSch = (LinkButton)sender; string[] ids = lnkSch.CommandArgument.ToString().Split(','); string courseId = ids[0]; string examId = ids[1]; Response.Redirect("AppointmentDetails.aspx?sch=" + AppSecurity.Encrypt("false") + "&cid=" + AppSecurity.Encrypt(courseId) + "&eid=" + AppSecurity.Encrypt(examId), false); }
protected void hplnkUnScheduledAppointments_Click(object sender, EventArgs e) { LinkButton lnkSch = (LinkButton)sender; string[] ids = lnkSch.CommandArgument.ToString().Split(','); string courseId = ids[0]; string examId = ids[1]; string URL = "AppointmentDetails.aspx?sch=" + AppSecurity.Encrypt("false") + "&cid=" + AppSecurity.Encrypt(courseId) + "&eid=" + AppSecurity.Encrypt(examId); ScriptManager.RegisterStartupScript(up, up.GetType(), "alert", "window.open('" + URL + "','_newtab');", true); }
protected void btnProceed_Click(object sender, EventArgs e) { BEStudent objBEStudent = new BEStudent(); BStudent objBStudent = new BStudent(); objBEStudent.IntTransID = transID; objBEStudent.IntType = 15; objBStudent.BUpdatePLTime(objBEStudent); //Response.Redirect("Authenticationcode.aspx?TransID=" + AppSecurity.Encrypt(transID.ToString()), false); Response.Redirect("ExamiKNOW.aspx?TransID=" + AppSecurity.Encrypt(transID.ToString()), false); }
protected void gvCourseStatus_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e) { if (e.CommandName.ToString() == "EditCourse") { string courseprov = e.CommandArgument.ToString(); if (courseprov.Contains(',')) { string[] cpid = courseprov.Split(','); Response.Redirect("EditCourseDetails.aspx?CourseID=" + AppSecurity.Encrypt(cpid[0]) + "&ExamProviderID=" + AppSecurity.Encrypt(cpid[1]) + ""); } } }
protected void gvStudentHome_ItemCommand(object sender, GridCommandEventArgs e) { if (e.CommandName == "ExamID") { //Response.Redirect("ExamDetailsConfirmation.aspx?" + AppSecurity.Encrypt("ExamID=" + e.CommandArgument), false); Response.Redirect("ExamDetailsConfirmation.aspx?TransID=" + AppSecurity.Encrypt(e.CommandArgument.ToString()), false); } else if (e.CommandName == "Reschdule") { Response.Redirect("ScheduleAnExam.aspx?ExamDate=" + AppSecurity.Encrypt(e.CommandArgument.ToString().Replace("/", "EC").Trim()), false); } }
protected void gvReschedule_ItemCommand(object sender, GridCommandEventArgs e) { if (e.CommandName == "ReSchedule") { Response.Redirect("ScheduleExam.aspx?TransID=" + AppSecurity.Encrypt(e.CommandArgument.ToString()), false); } if (e.CommandName == "Canel") { Response.Redirect("ExamCancelConfirmation.aspx?TransID=" + AppSecurity.Encrypt(e.CommandArgument.ToString()), false); } }
protected void lblStudentName_Click(object sender, EventArgs e) { try { ImageButton lblStudentName = (ImageButton)sender; int StudentID = int.Parse(lblStudentName.CommandArgument.ToString()); Response.Redirect("ViewUserDetails.aspx?Type=R&" + AppSecurity.Encrypt("StudentID=" + StudentID), false); } catch (Exception) { } }
protected void lblStudentNameDelete_Click(object sender, EventArgs e) { try { ImageButton lblStudentName = (ImageButton)sender; int StudentID = int.Parse(lblStudentName.CommandArgument.ToString()); Response.Redirect("AdminDeleteEnrollment.aspx?EnrollID=" + AppSecurity.Encrypt(StudentID.ToString()), false); } catch (Exception) { } }
protected void Div_Click(string strReportType) { // int intTypeID = 0; this.ResetTabStyles(); // trGridView.Visible = false; switch (strReportType) { case "Examstatusreport": //hdValue.Value = "1-2"; //intTypeID = 2; //((System.Web.UI.HtmlControls.HtmlGenericControl)this.Page.Master.FindControl("ExamProviderContent").FindControl("divDistinctstudentsreport")).Attributes.Add("class", "tab_s_active"); Response.Redirect("ReportsView.aspx?ReportID=" + AppSecurity.Encrypt("2") + "&ReportTypeID=" + AppSecurity.Encrypt("2")); break; //case "Completedexamsreport": // Response.Redirect("ReportsView.aspx?ReportID=" + AppSecurity.Encrypt("2") +"&ReportTypeID=" + AppSecurity.Encrypt("1")); // //hdValue.Value = "2-1"; // //intTypeID = 1; // //((System.Web.UI.HtmlControls.HtmlGenericControl)this.Page.Master.FindControl("ExamProviderContent").FindControl("divCompletedexamsreport")).Attributes.Add("class", "tab_s_active"); // break; //case "Unattendedexamsreport": // Response.Redirect("ReportsView.aspx?ReportID=" + AppSecurity.Encrypt("3") +"&ReportTypeID=" + AppSecurity.Encrypt("1")); // //hdValue.Value = "3-1"; // //intTypeID = 1; // //((System.Web.UI.HtmlControls.HtmlGenericControl)this.Page.Master.FindControl("ExamProviderContent").FindControl("divUnattendedexamsreport")).Attributes.Add("class", "tab_s_active"); // break; //case "Cancelledexamsreport": // Response.Redirect("ReportsView.aspx?ReportID=" + AppSecurity.Encrypt("4") +"&ReportTypeID=" + AppSecurity.Encrypt("1")); // //hdValue.Value = "4-1"; // //intTypeID = 1; // //((System.Web.UI.HtmlControls.HtmlGenericControl)this.Page.Master.FindControl("ExamProviderContent").FindControl("divCancelledexamsreport")).Attributes.Add("class", "tab_s_active"); // break; //case "Incompleteexamsreport": // Response.Redirect("ReportsView.aspx?ReportID=" + AppSecurity.Encrypt("5") +"&ReportTypeID=" + AppSecurity.Encrypt("1")); // //hdValue.Value = "5-1"; // //intTypeID = 1; // //((System.Web.UI.HtmlControls.HtmlGenericControl)this.Page.Master.FindControl("ExamProviderContent").FindControl("divIncompleteexamsreport")).Attributes.Add("class", "tab_s_active"); // break; //case "Violationsdetailreport": // Response.Redirect("ReportsView.aspx?ReportID=" + AppSecurity.Encrypt("6") +"&ReportTypeID=" + AppSecurity.Encrypt("2")); // //hdValue.Value = "6-2"; // //intTypeID = 2; // //((System.Web.UI.HtmlControls.HtmlGenericControl)this.Page.Master.FindControl("ExamProviderContent").FindControl("divViolationsdetailreport")).Attributes.Add("class", "tab_s_active"); // break; //case "Violationssummaryreport": // Response.Redirect("ReportsView.aspx?ReportID=" + AppSecurity.Encrypt("7") + "&ReportTypeID=" + AppSecurity.Encrypt("2")); // //hdValue.Value = "7-2"; // //intTypeID = 2; // //((System.Web.UI.HtmlControls.HtmlGenericControl)this.Page.Master.FindControl("ExamProviderContent").FindControl("divViolationssummaryreport")).Attributes.Add("class", "tab_s_active"); // break; } }
protected void lnkAll_Click(object sender, EventArgs e) { string fdate = string.Empty, ldate = string.Empty; if (rdpFromDate.SelectedDate != null) { fdate = rdpFromDate.SelectedDate.Value.ToString("MM/dd/yyyy"); } if (rdpToDate.SelectedDate != null) { ldate = rdpToDate.SelectedDate.Value.ToString("MM/dd/yyyy"); } Response.Redirect("Surveydetails.aspx?fdate=" + AppSecurity.Encrypt(fdate) + "&ldate=" + AppSecurity.Encrypt(ldate)); }
protected void btnProceed_Click(object sender, EventArgs e) { BEStudent objBEStudent = new BEStudent(); BStudent objBStudent = new BStudent(); objBEStudent.IntTransID = transID; objBEStudent.IntResult = 1; objBEStudent.IntType = 14; objBStudent.BUpdateNonProctorExamStatus(objBEStudent); objBStudent.BUpdatePLTime(objBEStudent); Response.Redirect("CaptureIDImage.aspx?TransID=" + AppSecurity.Encrypt(transID.ToString()), false); }
protected void btnStudentName_Click(object sender, EventArgs e) { try { LinkButton btnStudentName = (LinkButton)sender; int StudentID = int.Parse(btnStudentName.CommandArgument.ToString()); Response.Redirect("AdminViewUserDetails.aspx?Type=E&" + AppSecurity.Encrypt("StudentID=" + StudentID), false); } catch (Exception Ex) { throw Ex; } }
protected void gvExamStatus_ItemCommand(object sender, GridCommandEventArgs e) { try { if (e.CommandName.ToString() == "ViewVideo") { Response.Redirect("ExamDetails.aspx?TransID=" + AppSecurity.Encrypt(e.CommandArgument.ToString()) + "&Type=ViewDetails", false); //Response.Redirect("ExamDetails.aspx?mode=old&TransID=" + AppSecurity.Encrypt(e.CommandArgument.ToString()) + "&Type=ViewDetails", false); } } catch (Exception) { //ErrorLog.WriteError(Ex); } }
protected void gvExamDetails_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e) { if (e.CommandName.ToString() == "EditExam") { Response.Redirect("ViewExamDetails.aspx?ExamID=" + AppSecurity.Encrypt(e.CommandArgument.ToString()) + "&Type=Edit"); } else if (e.CommandName.ToString() == "ViewExam") { Response.Redirect("ViewExamDetails.aspx?ExamID=" + AppSecurity.Encrypt(e.CommandArgument.ToString()) + "&Type=View"); } else if (e.CommandName.ToString() == "DeleteExam") { Response.Redirect("ViewExamDetails.aspx?ExamID=" + AppSecurity.Encrypt(e.CommandArgument.ToString()) + "&Type=Delete"); } }
protected void lblStudentName_Click(object sender, EventArgs e) { try { LinkButton lblStudentName = (LinkButton)sender; int StudentID = int.Parse(lblStudentName.CommandArgument.ToString()); Session[BaseClass.EnumPageSessions.StudentID] = StudentID; Response.Redirect("ViewStudentDetails.aspx?Type=P&" + AppSecurity.Encrypt("StudentID=" + StudentID), false); } catch (Exception Ex) { throw Ex; } }
protected void gvAuditorInbox_ItemCommand(object sender, GridCommandEventArgs e) { try { if (e.CommandName.ToString() == "ViewVideo") { Response.Redirect("ExamDetails.aspx?TransID=" + AppSecurity.Encrypt(e.CommandArgument.ToString()), false); // Response.Redirect("ExamDetails.aspx?mode=old&TransID=" + AppSecurity.Encrypt(e.CommandArgument.ToString()), false); } } catch (Exception Ex) { throw Ex; } }
protected void btnBack_Click(object sender, EventArgs e) { string backstatus = ""; if (Request.QueryString["status"] != null && Request.QueryString["status"].ToString() != string.Empty) { backstatus = Request.QueryString["status"].ToString(); Response.Redirect("StudentLookUp.aspx?TransID=" + AppSecurity.Encrypt(ViewState[BaseClass.EnumPageSessions.TransID].ToString()) + "&status=" + backstatus + "", false); } else { Response.Redirect("StudentLookUp.aspx?TransID=" + AppSecurity.Encrypt(ViewState[BaseClass.EnumPageSessions.TransID].ToString()), false); } // Response.Redirect("ExamDetails.aspx?TransID=" + AppSecurity.Encrypt(transID.ToString()), false); }
protected void Div_Click(string strReportType) { // int intTypeID = 0; //this.ResetTabStyles(); // trGridView.Visible = false; switch (strReportType) { case "Examstatusreport": //hdValue.Value = "1-2"; //intTypeID = 2; //((System.Web.UI.HtmlControls.HtmlGenericControl)this.Page.Master.FindControl("ExamProviderContent").FindControl("divDistinctstudentsreport")).Attributes.Add("class", "tab_s_active"); Response.Redirect("AuditorReportsView.aspx?ReportID=" + AppSecurity.Encrypt("3") + "&ReportTypeID=" + AppSecurity.Encrypt("2")); break; case "Billingreport": //hdValue.Value = "1-2"; //intTypeID = 2; //((System.Web.UI.HtmlControls.HtmlGenericControl)this.Page.Master.FindControl("ExamProviderContent").FindControl("divDistinctstudentsreport")).Attributes.Add("class", "tab_s_active"); Response.Redirect("AuditorReportsView.aspx?ReportID=" + AppSecurity.Encrypt("3") + "&ReportTypeID=" + AppSecurity.Encrypt("3")); break; case "TestSummaryReport": Response.Redirect("TestSummaryReport.aspx"); break; case "TestResultReport": Response.Redirect("TestResultReport.aspx"); break; case "AppointmentScheduleReport": Response.Redirect("AppointmentScheduleReport.aspx"); break; } }
protected void gvExamStatus_ItemCommand(object sender, GridCommandEventArgs e) { //string NextPage = string.Empty; //if (e.CommandName == "view") // NextPage = "ViewExamScreens.aspx?mode=old&TransID="; //else // NextPage = "ViewExamScreens.aspx?mode=new&TransID="; // Response.Redirect(NextPage+AppSecurity.Encrypt(e.CommandArgument.ToString())+"&Type=View", false); if (e.CommandName == "view") { Response.Redirect("ViewExamScreens.aspx?TransID=" + AppSecurity.Encrypt(e.CommandArgument.ToString()) + "&Type=View", false); //Response.Redirect("ViewExamScreens.aspx?mode=old&TransID=" + AppSecurity.Encrypt(e.CommandArgument.ToString()) + "&Type=View", false); } }
protected void btnCancel_Click(object sender, EventArgs e) { //if (Request.QueryString["Type"].ToString() == "Schedule") // Response.Redirect("ScheduleExam.aspx?Type=Schedule"); //else // Response.Redirect("ScheduleExam.aspx?TransID=" + Request.QueryString["ReTransID"].ToString()); if (Request.QueryString["Type"].ToString() == "Schedule" && Session["Student_Exam"] != null) { Response.Redirect("ScheduleExam.aspx?Type=Schedule"); } else if (Request.QueryString["Type"].ToString() == "Schedule" && Session["Student_ReExam"] != null) { if (lblTransactionID.Text != "" && lblTransactionID.Text != "N/A") { Response.Redirect("ScheduleExam.aspx?TransID=" + AppSecurity.Encrypt(lblTransactionID.Text.ToString())); } } }
/* * protected int getSelectFlag() * { * int i = 1; * if (rdGreen.Checked == true) * i = 1; * else if (rdOrange.Checked == true) * i = 2; * else if (rdRed.Checked == true) * i = 3; * else if (rdAlert.Checked == true) * i = 4; * return i; * } * * * protected void btnClear_Click(object sender, EventArgs e) * { * txtComments.Text = string.Empty; * } */ protected void btnBack_Click(object sender, EventArgs e) { try { if (Request.QueryString["Type"] == "ExamStatus") { Response.Redirect("~/Proctor/ExamStatus.aspx", false); } if (Request.QueryString["Type"] == "View") { Response.Redirect("ViewUserDetails.aspx?Type=E&" + AppSecurity.Encrypt("StudentID=" + Session[BaseClass.EnumPageSessions.StudentID].ToString()), false); } } catch (Exception) { //ErrorLog.WriteError(Ex); } }
//#region SearchButton //protected void btnSearch_Click(object sender, EventArgs e) //{ // try // { // this.LoadData(); // } // catch (Exception Ex) // { // throw (Ex); // } //} //#endregion protected void gvProcessedExamRequest_ItemCommand(object sender, GridCommandEventArgs e) { try { ////string NextPage = string.Empty; ////if (e.CommandName == "ViewVideo") //// NextPage = "ExamDetails.aspx?mode=old&TransID="; ////else //// NextPage = "ExamDetails.aspx?mode=new&TransID="; ////Response.Redirect(NextPage+AppSecurity.Encrypt(e.CommandArgument.ToString())+"&Type=View", false); if (e.CommandName.ToString() == "ViewVideo") { Response.Redirect("ExamDetails.aspx?TransID=" + AppSecurity.Encrypt(e.CommandArgument.ToString()) + "&Type=View", false); //Response.Redirect("ExamDetails.aspx?mode=old&TransID=" + AppSecurity.Encrypt(e.CommandArgument.ToString()) + "&Type=View", false); } } catch (Exception Ex) { throw Ex; } }
protected void gvStudents_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e) { if (e.CommandName.ToString() == "ExpandCollapse" && !e.Item.Expanded) { foreach (GridItem item in e.Item.OwnerTableView.Items) { if (item.Expanded && item != e.Item) { item.Expanded = false; } } hdExpandValue.Value = e.Item.ItemIndex.ToString(); } else if (e.CommandName.ToString() == "ExpandCollapse" && e.Item.Expanded) { hdExpandValue.Value = "-1"; } else if (e.CommandName.ToString() == "View") { ImageButton ImgStudentID = (e.Item as GridDataItem).FindControl("BtnEditStudent") as ImageButton; Response.Redirect("ViewStudent.aspx?StudentID=" + AppSecurity.Encrypt(e.CommandArgument.ToString())); } }
protected void btnNext_Click(object sender, EventArgs e) { Int64 TransID = 0; if (Request.QueryString["TransID"] != null) { TransID = Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString())); //BEStudent objBEStudent = new BEStudent(); //objBEStudent.IntTransID = TransID; //new BStudent().BCheckPLexamretake(objBEStudent); string url = HttpContext.Current.Request.Url.ToString(); // Response.Redirect(url.Replace("http", "https").Replace("Systemreadiness.aspx", "CaptureImage.aspx"), false); Response.Redirect("CaptureImage.aspx?TransID=" + AppSecurity.Encrypt(TransID.ToString()), false); //Response.Redirect(HttpContext.Current.Request.Url.AbsoluteUri.Replace("http", "https").Replace("Systemreadiness.aspx", "CaptureImage.aspx?TransID=" + AppSecurity.Encrypt(TransID.ToString())), false); } else { Response.Redirect("StartAnExam.aspx"); } }