Revision: 52517
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 25, 2011 20:08 by root_hacker
Initial Code
$.ajax({ type: "GET", url: "/home/getdev", data: "{}", contentType: "application/json; charset=utf-8", dataType: "json", success: function(msg) { // Do something interesting here. console.log(msg); } });//ajax ends here public JsonResult GetDev() { return Json(new {author = "najam sikander awan", email="[email protected]"},JsonRequestBehavior.AllowGet); }
Initial URL
Initial Description
accessing getdev action of home controller which returns jsonresult
Initial Title
ajax with asp.net mvc3
Initial Tags
ajax
Initial Language
C#