Populate jquery modal dialog with MVC partial view async, and show in center of screen

前端 未结 3 2043
傲寒
傲寒 2021-02-02 00:33

I\'m trying to use the jquery modal dialog to show a partial view async when clicking on something. Pretty simple, and there are loads of questions on this, but I can\'t seem to

3条回答
  •  情深已故
    2021-02-02 01:07

    OK, I found the problem:

    The partial view I was returning for my modal dialog was created using the MVC scaffolding for an edit view, which by default includes some jQuery scripts which were already included in the layout page, which must have been causing the problem.

    All working nicely now!

提交回复
热议问题