<%@ WebHandler Language="C#" Class="GetDateTime" %> using System; using System.Collections.Generic; using System.Web; using System.Text; public class GetDateTime : IHttpHandler { public void ProcessRequest (HttpContext context) { string f = context.Request.QueryString["f"].ToString(); int p = int.Parse(context.Request.QueryString["p"].ToString()); DateTime n = DateTime.Now; n = n.AddDays(p); context.Response.Write(n.ToString(f)); } public bool IsReusable { get { return false; } } }