c# - asp.net generic handler calling another handler -
is possible call handler within handler? have custom handler fires off whenever file type requested , im going through authentication process , need call handler.
my problem have no idea how go calling other handler within handler.
many thanks
an http handler class. can instantiate other class , calls processrequest method.
a better design, though, avoid handler-to-handler call, , instead move common code utility class , call both handlers.
i'm assuming here want handler calls share httpcontext , request/response streams. if want first handler call second handler, read response,and return response of own, you're going want use glenn's answer instead.
Comments
Post a Comment