Mega Code Archive

 
Categories / ASP.Net Tutorial / Development
 

Adding the HttpHandler configuration information to web config

using System; using System.Web; public class Handler : IHttpHandler {          public void ProcessRequest (HttpContext context) {         context.Response.ContentType = "image/jpeg";         context.Response.WriteFile("Sunset.jpg");     }       public bool IsReusable {         get {             return false;         }     } }