Just use an AJAX call:
<div id='some-container'>Loading...</div>
<script type="text/javascript">
$(document).ready(function() {
$.get('@Url.Action("Add", "BankController")', function(viewResult) {
$("#some-container").html(viewResult);
alert(viewResult);
});
});
</script>
5
solved Call Controller action from JavaScript [closed]