protected void btnCadastrar2_onClick(object sender, EventArgs e) { Model.Login login = new Model.Login(); Controller.ControllerLogin con = new Controller.ControllerLogin(); login.email = ""; login.senha = "345"; login.cnpj = ""; if (con.InsertLogin(login)) { Response.Redirect("~/UserForm.aspx"); } else { Response.Write("<script>alert('ERRO');</script>"); } }