Why is Ajax.ActionLink updating entire page instead of just UpdateTarget

后端 未结 3 1684
陌清茗
陌清茗 2021-02-20 11:21

This should replace just the UpdateTarget, but it does not, it replaces the entire page and I don\'t see why. The correct partial view is being returned, but instead of replaci

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-20 12:11

    This happens because of this main reason that your jquery script file and jquery unobtrusive ajax are not included on the main layout or child view, i am afraid that you are missing them,include the jquery,jquery unobtrusive ajax files in view and it will work like a charm.

提交回复
热议问题