Click here to Skip to main content
15,879,095 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
iam facing
Quote:
System.InvalidOperationException: 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.
. here is the below code. I am using
<a class="visitedlink" target="_blank" href='@Url.Action("PORchecklist_list", "Tables" , new {PORID = @s.PorID })' >@s.OverAllTaskStatus%</a></div>
and clicking on the url it goes to the
PORChecklist_list
function and fetches the list of particular PORID.
PORChecklist
func stores the list of values from dropdown.but i see getting
System.InvalidOperationException
error. Please help me

public ActionResult PORChecklist()
{

List<string> dropdown_content = new List<string>();
dropdown_content = DOMEHelper.FufillmentChecklistPORs();
SelectList list = new SelectList(dropdown_content);

ViewBag.ListOfPORs = list;
return View();

}


public ActionResult PORChecklist_list(string PORID)
{

List<string> Desc = new List<string>();
Desc = WorkItemDescription.GetAllLaunchWorkItemDescription(PORID);

// Desc = WorkItemDescription.GetAllLaunchWorkItemDescription(913);
var list = "";

foreach (var a in Desc)
{
list = list + a;
}
return Json(list);
}


What I have tried:

return Json(list, "text/plain");
and
return Json(list,JsonRequestBehavior.AllowGet);
as well.

but still facing the error.
Posted
Comments
Member 13203555 26-May-17 1:58am    
can you please help me on this..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900