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