M
Martin
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.
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.