Arne Brachhold

Custom HTTP handlers in ASP.Net (.Net 1.1)

Filed under: .Net — arne on May 25, 2005

Custom Webhandlers are an excellent method to create ASP.Net pages which don’t need all the Page and WebControl stuff. Maybe you already created a .aspx file which should only return XML or an image.

If you develop with Visual Studio, it creates automatically an .aspx and .cs file for you and you have to delete all content except the Page Directive from the .aspx file or call Response.End() at Page_Load. This is not very cool and results in useless work.
(Read on …)