protected void btnStart_Click1(object sender, EventArgs e) { String sid, sname; sid = ddlSubjects.SelectedItem.Value; sname = ddlSubjects.SelectedItem.Text; Examination exam = new Examination(5, Int32.Parse(sid), sname); exam.GetQuestions(int.Parse(sid)); Session.Add("questions", exam); Response.Redirect(@"../Student/Examination.aspx"); }
protected void Button1_Click(object sender, EventArgs e) { String sid, sname; //int que; sid = Session["exam"].ToString(); sname = Session["ename"].ToString(); Examination exam = new Examination(Session["name"].ToString(), sid, sname, Int32.Parse(Session["noq"].ToString())); exam.GetQuestions(); Session.Add("questions", exam); // Response.Redirect("examination.aspx"); ClientScript.RegisterStartupScript(this.Page.GetType(), "", "window.open('examination.aspx','Graph','height=1000,width=1400');", true); //window.open('Default2.aspx','PoP_Up','width=500,height=500,menubar=yes,toolbar=yes,resizable=yes,fullscreen=1'); }
protected void btnStartExam_Click(object sender, EventArgs e) { if (chkStart.Checked == true) { String sid, sname; //int que; sid = Session["exam"].ToString(); sname = Session["ename"].ToString(); Examination exam = new Examination(Session["name"].ToString(), sid, sname, Int32.Parse(Session["noq"].ToString())); exam.GetQuestions(); Session.Add("questions", exam); Response.Redirect("examination.aspx"); } else { Response.Write("<script language='javascript'>alert('You Have to check the CheckBox to Start Your Exam.');</script>"); } }
protected void btnStartExam_Click(object sender, EventArgs e) { if (chkStart.Checked == true) { String sid, sname; //int que; sid = Session["exam"].ToString(); sname = Session["ename"].ToString(); Examination exam = new Examination(Session["name"].ToString(), sid, sname, Int32.Parse(Session["noq"].ToString())); exam.GetQuestions(); Session.Add("questions", exam); Response.Redirect("examination.aspx"); //ClientScript.RegisterStartupScript(this.Page.GetType(), "", "window.open('examination.aspx','Graph','height=1000,width=1400');", true); } else { Response.Write("<script language='javascript'>alert('You Have to check the CheckBox to Start Your Exam.');</script>"); } }