Example #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Lib.CheckCookieAdmin();
     if (!IsPostBack)
     {
     }
 }
Example #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Lib.CheckCookieAdmin();
     if (!IsPostBack)
     {
         LoadData();
         //LoadToCombobox();
     }
 }
Example #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     //check cookie
     Lib.CheckCookieAdmin();
     if (!IsPostBack)
     {
         if (!String.IsNullOrEmpty(Request.QueryString["ID"]))
         {
             loadData(Convert.ToInt32(Request.QueryString["ID"]));
             btnSubmit.Text = "Cập nhật";
         }
     }
 }
Example #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Lib.CheckCookieAdmin();
     if (!IsPostBack)
     {
         if (!String.IsNullOrEmpty(Request.QueryString["TEACHER_ID"]))
         {
             int itemID = Convert.ToInt32(Request.QueryString["TEACHER_ID"].ToString());
             loadData(itemID);
         }
         else
         {
             return;
         }
     }
 }
Example #5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     //Check cookie
     Lib.CheckCookieAdmin();
     if (!IsPostBack)
     {
         if (Session["username"] == null || String.IsNullOrEmpty(Session["username"].ToString()))
         {
             Response.Redirect("Login.aspx");
         }
         CheckRole();
         if (Session["Role"] == null || String.IsNullOrEmpty(Session["Role"].ToString()))
         {
             Response.Redirect("Login.aspx");
         }
         litMenu.Text = objFunction.loadmenu(0, 0, Session["username"].ToString());
     }
 }