Q:

Using custom httphandler from a custom assembly

Is it possible to register a custom httphandler in a stand alone assembly? I'm writing a control toolkit that uses httphandlers to perform AJAX and I would like to make the use of the toolkit as low friction for the web developers as possible. There will be quite a few handlers and I dont want the developer to have to register them all in the web.config.
Can they be referenced directly in the assembly? 

A:

I'm not sure if that is possible, but it certainly strikes me as the wrong approach.
If you are developing your own toolkit then you could instead make a http handler that identifies and calls other http handlers based on whatever logic you want:
public class MyToolkitHandler : IHttpHandler
{
    public void ProcessRequest(HttpContext context)
    {
        IHttpHandler handler = Toolkit.GetHandler();
        if (handler != null)
        {
            handler.ProcessRequest(context);
        }
    }
}

This would mean that you only need to register the one handler in your web.config.

