Exemplo n.º 1
0
        protected void botonEntrar_Click(object sender, EventArgs e)
        {
            if (!this.IsValid)
            {
                return;
            }
            else if (this.IsValid)
            {
                __control = new Controlador_Acceso_Ficheros();

                if (__control.existeUsuario(this.inputID.Text, this.inputPass.Text, ruta))
                {
                    this.Session["Usuario"] = this.inputID.Text;
                    this.Response.Redirect("MyInicio.aspx");
                }
                else
                {
                    this.labelError.Text = "Usuario o Password incorrectas";
                }
            }
        }