I sometimes see ASP.NET apps that include ASHX files. What are ASHX files?
Amit Das
Select an image from your device to upload
ASHX files contain HTTP handlers-software modules that handle raw HTTP requests received by ASP.NET. The following code institutes a simple HTTP handler:
<%@ WebHandler Language="C#" Class="Hello"%>using System.Web;public class Hello : IHttpHandler{ public void ProcessRequest (HttpContext context) { string name = context.Request["Name"]; context.Response.Write ("Hello, " name); } public bool IsReusable { get { return true; } }}