Pass control back from HTTPModule or HTTPHandler

M

Max

I have my HTTPModule or HTTPHandler registered to process all file types
(*).
I have IIS configured to pass all requests to ASP.NET for this virtual
directory.
In some cases depending on the request parameters I may decide that I need
to yield this request and I want it to be processed as if my handler was not
installed there and is if ASP.NET was configured to process only *.aspx
files.
Is there a relatively simple way to implement this?
Am I asking in the correct newsgroup?
I have not seen HTTPModule and HTTPHandler related questions and have not
find more apropriate group.

Thanks.
 
J

John Timney \( MVP \)

First question would be to determine why you cant just add a flag in your
module or handler to control whether the contents of the handler are
actioned or not, and pass it some form of indicator in the request?

Because you have mapped * to the asp.net dll, and the module is loaded into
the web.config for that whole virtual directory stack then all actions will
pass to your module, so the only way to actually bypass it is to move the
request to another virtual directory, or to lower in the stack where another
web.config can remove the module.

<httpModules>
<remove name="modulename"/>
<clear/>
</httpModules>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top