Hi Victor,
From your description, what you wonder is how to make each registered
httphandler only serve a certain set of requests/pages, correct?
Based on my understanding, you can consider the following two approaches
here:
1. Since custom httphandler or httpmodule setting can be configured in sub
directory level, you can consider group those pages or requests in to
different child directory of your ASP.NET application and configure the
specific httphandlers in those sub directory's web.config file. Thus,
requests to one sub directory won't be able to use handlers registered in
another sub directory.
#<httpHandlers> Element
http://msdn2.microsoft.com/en-us/library/aa903367(VS.71).aspx
2. Another formal way is use a HttpHandlerFactory, you can register this
factory as handler in your web.config for all the requests. Then, in the
handlerFactory's code, you can check the coming requests(url or other
conditions) and determine which handler to return and process the request.
#How to: Create HTTP Handler Factories
http://msdn2.microsoft.com/en-us/library/ms227439.aspx
Hope this helps.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.