[RESOLVED]render partial view in master page

I need to render a partial view below the main page. The content on the main page should still be retained.

And the partial view should be rendered on a button click. How can this be achieved?

http://www.codeproject.com/Articles/698246/ASP-NET-MVC-Special-Views-Partial-View-and-Layout

The above link directs you to a brilliant article, that would help you learn the query you have asked. Please go through I am sure, you will get your answer from this.

Thanks

Hi ,

Try this:

<div id="someDiv">
</div>

<script> document.getElementById("buttonId").onclick = function () { myFunction() }; function myFunction() { $("#someDiv").load('@Url.Action("xxx","xxx")'); } </script>

More information:

Partial view render on button click

best way & esieast way to Render partial view ON button click(Jquery)

Hope this can be helpful.

Best Regards,

Eileen

Leave a Reply