HTTP Handler?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • RSH

    #1

    HTTP Handler?

    Hi,

    I have a situation where my company wants to implement a part of our website
    that needs to process requests such as:
    http://www.mydomain.co m/<ServiceCenterN ame>

    I want to build a template page that will ultimately handle the request, but
    Im not sure how to go about interception the initial request.

    Im thinking that I need to establish if the request doesn't have an
    extension, then query the ServiceCenterNa me against the database. If it is
    legitimate than set a session variable and point them to the template page
    which will handle it from there.

    My problem is...how do I intercept the request and send it to my logic? Im
    vaguely familiar with the concept of a HTTP Handler...would that do the
    trick here?

    Thanks,
    Ron


  • =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=

    #2
    RE: HTTP Handler?

    If a request doesn't have an extension (e.g., .ashx, .aspx, .asp, etc) then
    you will need to use an ISAPI filter at the IIS level to perform "Url
    rewriting".
    UrlRewrite Lite is a free one you can try.
    Peter

    --
    Site: http://www.eggheadcafe.com
    UnBlog: http://petesbloggerama.blogspot.com
    Short urls & more: http://ittyurl.net




    "RSH" wrote:
    Hi,
    >
    I have a situation where my company wants to implement a part of our website
    that needs to process requests such as:
    http://www.mydomain.co m/<ServiceCenterN ame>
    >
    I want to build a template page that will ultimately handle the request, but
    Im not sure how to go about interception the initial request.
    >
    Im thinking that I need to establish if the request doesn't have an
    extension, then query the ServiceCenterNa me against the database. If it is
    legitimate than set a session variable and point them to the template page
    which will handle it from there.
    >
    My problem is...how do I intercept the request and send it to my logic? Im
    vaguely familiar with the concept of a HTTP Handler...would that do the
    trick here?
    >
    Thanks,
    Ron
    >
    >
    >

    Comment

    Working...