ASP.NET MVC controller actions that return JSON or partial html
Asked 07 September, 2021
Viewed 1.6K times
  • 64
Votes

I am trying to create controller actions which will return either JSON or partial html depending upon a parameter. What is the best way to get the result returned to an MVC page asynchronously?

11 Answer