protected void Page_Load(object sender, EventArgs e)
 {
     if (!(MySQLServer.auth_chech(Request) && MySQLServer.admin_check(Request)))
     {
         Response.Redirect("~/", false);
     }
 }
Exemple #2
0
        protected async void Page_Load(object sender, EventArgs e)
        {
            if (!(MySQLServer.auth_chech(Request) && MySQLServer.admin_check(Request)))
            {
                Response.Redirect("~/", false);
            }


            if (category.Items.Count == 0)
            {
                loadMeta();
            }
        }