protected void StaffLogin(object sender, EventArgs e) { MMServiceReference1.Service1Client prox = new MMServiceReference1.Service1Client(); string result = prox.searchXML("staff.xml", Email.Text); if (result == "Not found") { Shiz.Text = "Account Not Found"; } else { string[] resultComponents = result.Split(' '); string encrPass = ClassLibrary2.Class1.Encryption(Password.Text); if (encrPass == resultComponents[3]) { //Login Success Shiz.Text = "Login Successful"; Response.Redirect("~/Admin/AdminPage/AdminPage.aspx"); } else { Shiz.Text = "Incorrect Password"; } } }
protected string AdminLogin() { MMServiceReference1.Service1Client prox = new MMServiceReference1.Service1Client(); string result = prox.searchXML("staff.xml", UserEmail.Value); if (result == "") { return("Not found"); } else { string[] resultComponents = result.Split(' '); return(resultComponents[3]); } }
protected void findRestMethod(object sender, EventArgs e) { MMServiceReference1.Service1Client prox = new MMServiceReference1.Service1Client(); string zip = ""; string State = ""; if (Request.Cookies["State"] != null && Request.Cookies["City"] != null) { State = Request.Cookies["State"].Value; zip = Request.Cookies["City"].Value; } string[] res = prox.foodPlace(zip); for (int i = 0; i < res.Length; i++) { res[i] = res[i].Replace("</", ""); BulletedList1.Items.Add(res[i]); } }
protected string enc(string t) { MMServiceReference1.Service1Client prox = new MMServiceReference1.Service1Client(); return(ClassLibrary2.Class1.Encryption(t)); }