Created
February 29, 2012 22:19
-
-
Save nikmd23/1944913 to your computer and use it in GitHub Desktop.
Use JsonpResult
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public ActionResult ActionMethod() | |
{ | |
var data = GetDataSomehow(); | |
return new JsonpResult(data); | |
//constructor overload for overriding callback function | |
//return new JsonpResult(data, "callback function"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment