Re: Http-handlers
From: Joseph Geretz (jgeretz@nospam.com)
Date: 03/16/03
- Next message: Joseph Geretz: "Re: Authenticate user and allow anonymous access"
- Previous message: David Stevenson: "Re: System.Security.SecurityException: Requested registry access is not allowed"
- In reply to: Asbjørn A. Mikkelsen: "Re: Http-handlers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Joseph Geretz" <jgeretz@nospam.com> Date: Sat, 15 Mar 2003 20:27:30 -0500
> I found another way of possible do this, but it's partly uggly, but it
> could be conisdered, namely, create an HttpHandler that parses the
> incomming url, find out what is requestet, remap to an .asp page, and
> use an HttpRequest object to get this page on the server locally (will
> generate an extra httprequest on the server though), then this content
> could be sent to the client via response.write or something..
> Possible this would kill the server performance?
I was in this situation myself, briefly. I had my application controller
(i.e. filter) originally engineered as an HttpHandler. This was fine for
instantiating business objects which were engineered as classes
implementing a known interface. It became a barrier though to native WebForm
development, since the HttpHandler becomes the target of the request which
makes it difficult to involve the WebForm itself, (or any aspx script) in
the request. I originally solved the problem exactly as you suggest;
However, depending on the complexity of your aplication, don't underestimate
the amount of code which will be necessary to send query parameters (one
way), form fields (one way) and cookies (bi-directional). In essense, you'll
be rewriting your own web server, which is the position I found myself in.
(Of course, this was really the wrong solution for my problem. An Httpodule,
rather than an HttpHandler is more appropriate for an application filter
since it dos not interfere with the target request. This is ultimately the
solution which I implemented.)
This whole topic makes me wonder why MS couldn't (or wouldn't) provide
backward compatibility to allow the .NET ASPX ISAPI to process both ASP
scripts as well as ASPX scripts.
- Next message: Joseph Geretz: "Re: Authenticate user and allow anonymous access"
- Previous message: David Stevenson: "Re: System.Security.SecurityException: Requested registry access is not allowed"
- In reply to: Asbjørn A. Mikkelsen: "Re: Http-handlers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|