Starting my studies in MVC I am doing a CD registration. It turns out I have a view with artist details (Artists / Details / 1). In this View, I have a "New" button to type a new artist CD and it opens a modal window for it (Jobs / Create). You would need to "pass" the name of the artist that is in Artists / Details / 1 to this modal. How is this possible? The button code looks like this:
<a href="#" class="btn btn-info btnCreate" style="width: 220px; background-color:darkseagreen">Novo</a>
To open the modal it looks like this:
$(document).ready(function () {
$.ajaxSetup({ cache: false });
$(".btnCreate").click(function () {
$("#modal").load("/Trabalhos/Create/", function () {
$('#myModal').modal("show");
});
});
});