<%@ WebHandler Language="C#" Class="AyaImage" %> using System; using System.Web; public class AyaImage : IHttpHandler, System.Web.SessionState.IReadOnlySessionState { public void ProcessRequest (HttpContext context) { string idstring = context.Request.QueryString["id"]; Guid oID = Guid.Empty; if (!string.IsNullOrEmpty(idstring)) oID = new Guid(idstring); Util.WriteAyaImageToResponse(context.Response, oID); // context.Response.ContentType = "text/plain"; //context.Response.Write("Hello World"); } public bool IsReusable { get { return false; } } }