Load partial view into div

前端 未结 4 2118
感动是毒
感动是毒 2020-12-05 05:51

I\'m trying to load a partial view into a div from a calling view, however the partial view loads into a new page. There isn\'t much code to it and I\'ve tried various ways

4条回答
  •  不知归路
    2020-12-05 06:28

    I think you should use instead of @Ajax.Actionlink(...)

    in MVC4 you can add bundle @Scripts.Render("~/bundles/jqueryval") just after @Scripts.Render("~/bundles/jquery") or add script reference in script section in page view as shown below:

    @section scripts
        {
        
    
        }
    

    Good Luck.

提交回复
热议问题