Skip HttpModule Use?
I have an HttpModule defined in my web.config, sometimes I want to use
it and sometimes I don't. Is there a way to declare whether I need it
or not in my code-behind?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Re: Skip HttpModule Use?
"poi" <email@example.com> wrote in message
> I have an HttpModule defined in my web.config, sometimes I want to use
> it and sometimes I don't. Is there a way to declare whether I need it
> or not in my code-behind?
Which code-behind? An HttpModule is called for every request. It doesn't
depend on the codebehind of any given page.
Have your HttpModule decide whether or not it is needed, or else partition
your pages into those which need it and those which do not. Put these
partitions in separate directory trees and use a separate web.config in each
|All times are GMT. The time now is 06:47 AM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.