[Solved] Updating Partial Views From Controller in .Net MVC [closed]


You can use Jquery Ajax for this
Try something like this..

$('#Yourbutton').on('click', function(){
    $('#yourdiv').empty();
    $.ajax({
        url: '@Url.Action("YOUR Action", "YOUR Controller")',
        dataType: 'html',
        cache: false,
        async: true,
        data : {Yourparam1:value ,YourParam2:value }
        success: function(result){
            $('#yourdiv').append(result);
        } 
    });
});

Here I assume that there is a div in your page to hold partial view data

5

solved Updating Partial Views From Controller in .Net MVC [closed]