Ejemplo n.º 1
0
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string    jobTypeID = context.Request.Form["jobTypeID"];
            DataTable dt        = new DataAccess.RunProcedure().SpotGetSaleList(jobTypeID).Tables[0];

            dt.TableName = "sale";
            DataSet ds = new DataSet();

            ds.Tables.Add(dt.Copy());
            string json = JsonConvert.SerializeObject(ds);

            context.Response.Write(json);
        }