Exemplo n.º 1
0
        protected void btnfinish_Click(object sender, EventArgs e)
        {
            if (btnfinish.Text == "Finish")
            {
                if (Session["TrangThai"].ToString() == "Nor")
                {
                    AddKotaeNor();
                    DataTable dt = new DataTable();
                    RptTest.DataSource = dt;
                    RptTest.DataBind();
                    btnfinish.Text = "Thoát";
                    Endwar();

                    string close = @"<script type='text/javascript'>
                                window.returnValue = true;
                                window.close();
                                </script>";
                    base.Response.Write(close);
                    myform.Visible = false;
                }
            }
            else
            {
                if (btnfinish.Text == "Thoát")
                {
                    Response.Redirect("mem-login.aspx");
                }
            }
        }
Exemplo n.º 2
0
 private void ViewTest()
 {
     if (!IsPostBack)
     {
         DataTable dtAcc = new DataTable();
         dtAcc = TblAcc_BLL.SelectCauTest(int.Parse(Session["IDSub"].ToString()));
         int IDcau = int.Parse(dtAcc.Rows[0][0].ToString());
         RptTest.DataSource = TblTest_BLL.ViewTestID(int.Parse(Session["IDSub"].ToString()), 6, IDcau);
         RptTest.DataBind();
     }
 }
Exemplo n.º 3
0
 private void ViewTest()
 {
     RptTest.DataSource = TblTest_BLL.ViewTest_update();
     RptTest.DataBind();
 }