header('Content-Type: application/x-json');\r
echo json_encode($output);\r
}\r
+</code></pre>\r
+ * <p>Below is the ASP.Net code to do the same thing:</p><pre><code>\r
+String jsonString = "{success: true}";\r
+String cb = Request.Params.Get("callback");\r
+String responseString = "";\r
+if (!String.IsNullOrEmpty(cb)) {\r
+ responseString = cb + "(" + jsonString + ")";\r
+} else {\r
+ responseString = jsonString;\r
+}\r
+Response.Write(responseString);\r
</code></pre>\r
*\r
* @constructor\r