Partial Views vs. Json (or both)

前端 未结 4 1431
长情又很酷
长情又很酷 2020-12-13 07:16

I use ASP.NET MVC with jQuery and have a lot of Ajax requests to my controllers.

Use Partial Views (usercontrols) to build the intial view when a page is loaded. The

4条回答
  •  悲哀的现实
    2020-12-13 08:00

    I believe you could return the rendered html as a string - this could alternately be an html string containing an error message to display?

提交回复
热议问题