Return to Snippet

Revision: 52517
at October 25, 2011 20:08 by root_hacker

Initial Code
type: "GET",
url: "/home/getdev",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg) {
// Do something interesting here.
});//ajax ends here

public JsonResult GetDev()
            return Json(new {author = "najam sikander awan", email="na[email protected]"},JsonRequestBehavior.AllowGet);

Initial URL

Initial Description
accessing getdev action of home controller which returns jsonresult

Initial Title
ajax with mvc3

Initial Tags

Initial Language