Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: return Json(xxxx) doesnt work

$
0
0
You're doing it wrong! Using the MVC player is for emdedding the content returned by the controller where the function is inserted, not overriding the whole response. Instead request the controller directly by its route.

Btw, returning JSON from your MVC controller is in 99% of the cases better handled using dedicated Web API.

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>