private void getMyHandledTask(HttpContext context) { string json = CFunctions.getMyHandledTask(context); context.Response.ContentType = "application/json"; context.Response.Write(json); context.ApplicationInstance.CompleteRequest(); }