Render Partial View Using jQuery in ASP.NET MVC

后端 未结 8 2061
有刺的猬
有刺的猬 2020-11-22 11:13

How do I render the partial view using jquery?

We can render the partial View like this:

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


        
8条回答
  •  北海茫月
    2020-11-22 11:27

    I have used ajax load to do this:

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

提交回复
热议问题