Search code examples
javascriptjqueryasp.net-mvcrenderpartial

Render Partial View Using jQuery in ASP.NET MVC


How do I render the partial view using jquery?

We can render the partial View like this:

<% Html.RenderPartial("UserDetails"); %>

How can we do the same using jquery?


Solution

  • I have used ajax load to do this:

    $('#user_content').load('@Url.Action("UserDetails","User")');