Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         //加载客户服务信息
         BLL.HKSJ_Clients clients = new BLL.HKSJ_Clients();
         ClientsShow = clients.GetModel(int.Parse(Request["id"]));
     }
 }
Esempio n. 2
0
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            int clientId = context.Request["id"] == null ? 0 : int.Parse(context.Request["id"]);

            BLL.HKSJ_Clients   clientService = new BLL.HKSJ_Clients();
            Model.HKSJ_Clients client        = new Model.HKSJ_Clients();
            client = clientService.GetModel(clientId);
            System.Web.Script.Serialization.JavaScriptSerializer serializer = new System.Web.Script.Serialization.JavaScriptSerializer();
            context.Response.Write(serializer.Serialize(client));
        }