Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string[] list;
            string   fLocation = Path.Combine(HttpRuntime.AppDomainAppPath, @"App_Data\Staff.xml");

            list = XMLProccess.getUserList(fLocation);
            for (int i = 0; i < list.Length; i++)
            {
                txtStaffs.Text += (list[i] + "\n");
            }
        }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //Cookie access Control
            //------------------------------------------------
            if ((Request.Cookies["staffMember"] == null) && (Request.Cookies["admin"] == null))
            {
                Response.Redirect("StaffLogin");
            }
            //------------------------------------------------

            txtStaffs.Text = "";
            string fLocation = Path.Combine(HttpRuntime.AppDomainAppPath, @"App_Data\Staff.xml");

            string[] userNames = XMLProccess.getUserList(fLocation);
            foreach (string s in userNames)
            {
                txtStaffs.Text += s + "\n";
            }
        }