3 de maio de 2014

mvc 4 refresh partial view

<div id="CadastroHeader" style="border:1px solid blue">
@{
    Html.RenderAction(  "Index", 
                        "Cadastro", 
                        new { 
                                id_entidade = Model.id_Entidade,
                                tabname = "Header",
                                submit = "HeaderRefresh"
                            }
                        );
}
</div>

<script>

    $("#CadastroHeader").load("Cadastro",
                            {
                                id_entidade: "@(Model.id_Entidade)",
                                tabname: "Header",
                                submit: "HeaderRefresh"
                            });

</script>

Sem comentários:

LinkWithin

Related Posts with Thumbnails