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