protected void btnEntrar_Click(object sender, EventArgs e) { string email = txtEmail.Text; string senha = txtSenha.Text; try { AlunoBLL bll = new AlunoBLL(); Usuario usuario = bll.login(email, senha); if (usuario != null) { Response.Redirect("WS/WebService1.asmx"); } } catch (Exception ex) { Response.Write("Email ou senha invalidos. Erro:" + ex.Message); } }