By placing this attribute on DirectController's class or method you allows JSONP requests. Optionally, you can specify a request parameter with callback's function name. By default, the name is callback.

Code Sample:

[AllowJsonP] // callback's parameter name is "callback"
public ActionResult JsonPMethod()
public ActionResult JsonPMethod()


Last edited Apr 27, 2012 at 3:05 PM by ShaiHulud, version 2


No comments yet.