0
Hello, I’m building a registration page with MVC . NET and I’m having a hard time. I want to validate the filled information, if they are correct, I will follow the application flow but if not, I want to open a jquery modal alerting the user that there is incorrect information. Since I’m new to MVC, I haven’t got that yet. I created the div with modal and call through the button click, but I could not put this condition to open only when my post is not successful.
Below follows the div with the modal I created.
<div id="myModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<h4>ATENÇÃO!</h4>
<p>
Existem informações inconsistentes em seu cadastro.
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary waves-effect" data-dismiss="modal">Fechar</button>
</div>
</div>
</div>
</div>
You gave right my friend, thank you so much for your help!
– Rodrigo Jerônimo Dos Santos