Esempio n. 1
0
 // Methods
 protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
 {
     Location location = new Location();
     location.find("LocationID = '" + this.Login1.UserName.Replace("'", "''") + "' ");
     if (e.Authenticated = location.authenticate(this.Login1.Password))
     {
         this.Session["location"] = location;
     }
 }