ASP.NET MVC modal dialog/popup best practice

后端 未结 3 853
萌比男神i
萌比男神i 2020-12-02 13:09

I am looking for the most standard way to achieve modal dialogs in ASP.NET MVC.

An example of what I am trying to do is when I select an item from my \"list\" page

3条回答
  •  -上瘾入骨i
    2020-12-02 13:31

    Lunchy's dialog suggestion is nice. Just make an ajax request to your controller action and have the action return what you want to display, like a partial view with some formatting html. Then, put that html into your dialog, or whatever you plan to display, and show it.

提交回复
热议问题