Hi, How can i pass the json output from controller action to its view ? As I tried to send before, My code is :
public ActionResult Index() { Guid Id = new Guid("66083eec-7965-4f3b-adcf-218febbbceb3"); List officersTasks = tasks_to_officer_management.GetTasksToOfficers(Id); return Json(officersTasks) }
it is asking for JsonRequestBehavior.AllowJson like parameter. I know it is new in asp.net mvc 2 but as redirect to view there is nothis happens but asking for download the json output file. I want to work with returned data in my Jquery . but something going wrong there. and if I removed the parameter then it is showing error :
This request has been blocked because sensitive information could be disclosed to third party web sites when this is used in a GET request. To allow GET requests, set JsonRequestBehavior to AllowGet.
How to avoid this and get json data at view ?