File: SimpleHandler.cs
using System;
using System.Web;
using System.IO;
public class SimpleHandler : IHttpHandler
{
public void ProcessRequest(System.Web.HttpContext context)
{
HttpResponse response = context.Response;
response.Write("Rendered by the SimpleHandler");
response.Write("
");
}
public bool IsReusable
{
get { return true; }
}
}
File: SimpleHandler.ashx
<%@ WebHandler Language="C#" Class="SimpleHandler" %>
File: web.config
CustomHTTPHandler.zip( 1 k)