Пример #1
0
        public void ProcessRequest(HttpContext context)
        {
            ExamSubjectDalServer examSubjectDalServer = new ExamSubjectDalServer();

            context.Response.ContentType = "html/plain";
            //context.Response.Write("Hello World");
            BaoKao baoKao = new BaoKao();

            baoKao.Sid = context.Request.QueryString["sid"];
            baoKao.Eid = Convert.ToInt32(context.Request.QueryString["eid"]);

            examSubjectDalServer.DeletBK(baoKao);
            string str = "detailStudent.aspx?id=" + baoKao.Sid;

            context.Response.Redirect(str);
        }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Students students = new Students();

            students = (Students)Session["account"];
            BaoKao baoKao = new BaoKao();

            baoKao.Sid = students.id;
            baoKao.Eid = Convert.ToInt32(Request.QueryString["id"]);
            ExamSubjectDalServer examSubjectDalServer = new ExamSubjectDalServer();

            examSubjectDalServer.DeletBK(baoKao);
            string str = "detailStudent.aspx?id=" + baoKao.Sid;

            Response.Redirect(str);
        }