Possible to map a new file extension to an existing handler in ASP.NET?
Posted
by Dave
on Stack Overflow
See other posts from Stack Overflow
or by Dave
Published on 2010-05-18T23:24:37Z
Indexed on
2010/05/18
23:30 UTC
Read the original article
Hit count: 255
I have a scenario where my application is going to be publishing services that are consumed by both PC's and mobile devices, and I have a HTTPModule that I want to only perform work on only the mobile requests. So I thought the best way of doing this was to point the mobile requests to a different file extension and have the HTTPModule decide to process only if the request targets this new extension.
I don't need a custom HTTPHandler for the new extension; I want to program the services like a normal .ASMX service, just with a different extension.
First, can I do this? If so, how do I do it so that requests to my new extension are handled just like .ASMX requests?
Second, is this the right approach? Am I going about separating and managing the mobile vs. PC requests the wrong way?
Thanks, Dave
© Stack Overflow or respective owner