473,474 Members | 1,750 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Pass control back from HTTPModule or HTTPHandler

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.
May 27 '06 #1
1 1599
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" <An****@2news.group> wrote in message
news:Om**************@TK2MSFTNGP02.phx.gbl...
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.

May 27 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Peter Rilling | last post by:
Can an HttpHandler or HttpModule be invoked on non-ASP.NET pages such as images or ASP or HTML pages? Can I trap a request for those pages? If not, how might I trap those requests?
0
by: Bruce B | last post by:
Hi group, I'm experiencing some extreme weirdness over the last week with IIS related to it's Mappings and how .NET is behaving. I can't explain the behavior as it seems very random. Our...
3
by: Michael Iantosca | last post by:
I have a custom attribute that I attach to certain pages in my application and I want to inspect each page request as it is made to see if the custom attribute is attached to the underlying page...
3
by: MWells | last post by:
I'm having an issue getting my HttpHandlers and HttpModules to play together nicely. My HttpHandlers take special document types (defined by extension) and process them specially. I might have...
0
by: Mike Schilling | last post by:
(I've asked this on the C# newsgroup; I'm hoping someone over here might have an idea.) We have a C# application running under ASP.NET. It wasn't written using any VS.NET magic; all of the call...
0
by: tshad | last post by:
I am trying to get an HttpHandler I found on the Web to work. It is called FreeText. It allows fancy handling of a Textbox. This program is just a dll that you set up as an HttpHandler: ...
2
by: Roshawn | last post by:
Hi, I've been fighting tooth and nail trying to handle clunky viewstate data. I happened to find some code that moves this data to the bottom of the page (to enhance spidering, of course). ...
3
by: =?Utf-8?B?Sm9obg==?= | last post by:
Hi, I need to write asynchronous HTTPModule which will sometimes execute long job. I've written it using AddOnBeginRequestAsync but it still executes synchronously - I am checking performance...
3
by: Guzeppi | last post by:
if i want to create a redirection service, i.e. requests on a certain url are redirected to other urls depending on the querystring parameters in the request, what is best to use in this case...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.