public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; string id = context.Request["id"]; DataTable dt = bll.ShowLeave(id); context.Response.Write(JsonConvert.SerializeObject(dt)); }