Example #1
0
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            BasicInfoBll         bll   = new BasicInfoBll();
            int                  id    = int.Parse(context.Request["personId"]);
            BasicInfoModel       model = bll.SelectModelById(id);
            JavaScriptSerializer jss   = new JavaScriptSerializer();

            if (model != null)
            {
                string jsonData = jss.Serialize(model);
                context.Response.Write(jsonData);
            }
        }