<%@ WebHandler Language="C#" Class="GetGuid" %> using System; using System.Collections.Generic; using System.Web; public class GetGuid : IHttpHandler { public void ProcessRequest (HttpContext context) { context.Response.Write(Guid.NewGuid().ToString("N")); } public bool IsReusable { get { return false; } } }