Httphandler redirection to document -- GetCompiledPageInstance



Hi,

I have a number of documents stored on my web server and these documents
should not be servered to anybody unless the user is both authenticated and
authorized.
This authentication and authorization comes from a custom database.
To stop users simply requesting the documents directly I have written a http
handler to intercept requests for *.doc.

This works well and all of my requests are intercepted by the handler.
however I can't figure out how to actually give the requested file to a user
if they do have permission to view the file.
what I would like to do is seemlessly pass on the request for the document
to the application and have it handled as if the HttpHandler had not
intercepted the request in the first place.

I have looked at the method "PageParser.GetCompiledPageInstance" and used
in like so in the page

PageParser.GetCompiledPageInstance("/mywebapp/Documents/martin.doc",Request.MapPath("Documents/martin.doc"),ctx);

however, I am having no luck and there seems not a lot of info about
"GetCompiledPageInstance"

I would appreciate some advice if anybody could offer some.

many thanks in advance.

cheers

martin.


.



Relevant Pages

  • Re: Problem - moving to IIS 6.0
    ... >what authentication methodit support. ... >client to figure out how to optimize the requests to not ... >I've got an ASP.NET app that I've designed and tested on ...
    (microsoft.public.inetserver.iis.security)
  • Re: Windows 2003/IIS 6.0 + IE 6.0 - random authentication dialog
    ... NetMon can be found in Add/Remove Programs under Network ... Proper Integrated Authentication functionality requires strict adherence to ... authentication and runnning under Windows 2003 Server Standard ... It happens when the UI requests dynamic content from ...
    (microsoft.public.inetserver.iis.security)
  • Re: Macro code
    ... >> All a web server is, is a program that accepts incoming connection ... >> requests, grants a connection, and satisfy's requests. ... the array index to designate which thread should use it. ...
    (comp.os.vms)
  • Re: Problem - moving to IIS 6.0
    ... server supports/requires authentication, so it always sends a request using ... client to figure out how to optimize the requests to not trigger unnecessary ... server can always be mis-configured to foil any optimization strategy of the ... I've got an ASP.NET app that I've designed and tested on ...
    (microsoft.public.inetserver.iis.security)
  • Re: Only 2 concurrent connections with window.open()?
    ... I am using client side JScript in Internet Explorer 6 SP1 to use a page to ... new browser windows get opened as expected, and it is evident that all are ... Active Server Pages 'Requests Executing' and 'Requests Queued' counters on ... client browser at any one time, i.e. they never reach the web server until ...
    (microsoft.public.scripting.jscript)