using Ajax for partial view loading in .NET MVC4

前端 未结 7 1281
臣服心动
臣服心动 2020-12-17 15:01

I\'m trying to follow the post here, which may very well be wrong, to learn a little more about partial view loading in MVC. I know the basics of MVC but want to do more of

7条回答
  •  太阳男子
    2020-12-17 15:49

    1. ditch # in UpdateTargetId = "#mainDiv"
    2. make sure you have jquery.unobtrusive-ajax.min.js script referenced on your page.

提交回复
热议问题