I want to be able to click a button, have a function in my controller return a JSON object that can be used on my page without the page reloading.
My controller:
//Dont know if HttpPost is right
[HttpPost]
public ActionResult GetPinPoints() {
return jsonobject;
}
I want to be able to call this and have it return a JSON object on a page in AJAX so I dont have to reload the page.
Two Parts:
1) The Controller
2) The View (via JQuery)