Re: Pass control back from HTTPModule or HTTPHandler



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>

--
Regards

John Timney
Microsoft MVP

"Max" <Answer@xxxxxxxxxxx> wrote in message
news:OmVYtwbgGHA.4196@xxxxxxxxxxxxxxxxxxxxxxx
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.




.



Relevant Pages

  • Re: Modular PHP
    ... How can I catch an event in PHP. ... Everything is done with XML, so you will want to be familiar with XSLT ... the function itentified by the Handler attribute in the above XML, ... It's also worth noting that all the XML parsing for the request map ...
    (comp.lang.php)
  • Re: ISAPI vs. HTTPModule
    ... which parses the request and dispatches it to IIS in usermode. ... extension of the request is determined, and then sent to its handler. ... > ISAPI will not be able to access any .Net intrinsics/events. ...
    (microsoft.public.inetserver.iis)
  • Re: Custom HttpHandler and Server.Transfer
    ... server side processing path for the current request. ... | Subject: Re: Custom HttpHandler and Server.Transfer ... |>methods only addressing transfer to another Page handler, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Async callbacks with Global.asax
    ... ICallbackEventHandler and RaiseCallbackEvent) and a regular GET request ... And here is the page that handles the callback request. ... the callback handler in _Default page. ... includeStagesBeforeAsyncPoint = true, bool includeStagesAfterAsyncPoint ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: httpModules :: BeginRequest Behavior
    ... > request URL parsed so that I could route all URLs containing "view" to ... I wrote the code for a handler that did a ... > /// Summary description for Controller. ... public void Init{ ...
    (microsoft.public.dotnet.framework.aspnet)