html:
ashx:
using System;using System.Collections.Generic;using System.Linq;using System.Web;namespace AJax{ ////// GetDate1 的摘要说明 /// public class GetDate1 : IHttpHandler { public void ProcessRequest(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; } } }}