This is a discussion on "httpModules" within the ASP.NET Forum section. This forum, and the thread "httpModules are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
httpModules
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
httpModules
In an asp.net web application i am using a HttpModule to intercept a request for a particular file so that i can
manipulate requests and responses as they enter or exit IIS.The HTTP Module is deployed in web.config using <httpModules> <add type="Tracker.Request1,Tracker" name="Tracker" /> </httpModules> The Http Module is working fine, but i have a doubt can we wrap this htppmodule in a <location> so that it is executed for the request for files in a particular folder |
|
|
|
||||
|
I am not 100% sure what you are trying to do here, but maybe you can implement something via the web.config file in the directory you want to protect:-
An ASP.NET server may (or may not) have a machine.config file which represents the basis upon which inheritance begins. Multiple configuration files, all named Web.config, can appear in multiple directories on an ASP .NET Web application server. Each Web.config file applies configuration settings to its own directory and all child directories below it. Configuration files in child directories can supply configuration information in addition to that inherited from parent directories and from the machine.config file. Child directory configuration settings can override or modify settings defined in parent directories and the machine.config file. Hope this helps get you started.
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
![]() |
| Tags |
| httpmodules |
| Thread Tools | |
|
|