I have a page that loads several partials views, I want to call a specific page in a modal that will fill the entire screen. I'm using a generic jquery command to call an action that will be passed by parameters.
This is the
<button type="button" class="btn glyphicon glyphicon-zoom-in loopa" data-id="_ArquivosProcDia"></button>
This is the div
<div class="modal fade" id="modal4" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
</div>
<div class="modal-body" id="abrezoompagina">
@Html.Action("_ArquivosProcDia")
</div>
</div>
</div>
</div>
This is the script
<script>
$(".loopa").click(function () {
var part = $(this).attr("data-id");
var part2 = $(this).replaceWith(@(Html.Action(part));
$("#modal4").modal();
});
Each partial view will have its own magnifying glass to bring the modal with your information, the partial that will open in this example will be the _Proc files .