I\'m trying to create a HTTP handler to handle all requests to a folder but I only want it to fire if the files requested don\'t exist (EG: Request comes in for file X, if X exi
I've ended up sticking with a handler and instead using the following to solve the problem:
if (File.Exists(context.Request.PhysicalPath)) context.Response.TransmitFile(context.Request.PhysicalPath);
else { /* Standard handling */ }
Given so many people advocated Modules and catching exceptions I feel I should clarify why I didn't listen: