c# - Using custom httphandler from a custom assembly -


is possible register custom httphandler in stand alone assembly? i'm writing control toolkit uses httphandlers perform ajax , make use of toolkit low friction web developers possible. there quite few handlers , dont want developer have register them in web.config.

can referenced directly in assembly?

i'm not sure if possible, strikes me wrong approach.

if developing own toolkit instead make http handler identifies , calls other http handlers based on whatever logic want:

public class mytoolkithandler : ihttphandler {     public void processrequest(httpcontext context)     {         ihttphandler handler = toolkit.gethandler();         if (handler != null)         {             handler.processrequest(context);         }     } } 

this mean need register 1 handler in web.config.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -