ashx:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;


namespace AJax
{
    ///


    /// GetDate1 的摘要说明
    ///

    public class GetDate1 : IHttpHandler
    {


        public void Proce***equest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string id = context.Request["id"];//获取到客户端的变量
            string ts = context.Request["ts"];
            ts = "hello";
            context.Response.Write(DateTime.Now.ToString() + "---" + id+"--"+ts); //返回给客户端数据
        }


        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}