HttpContext.Server.Transfer Problem
am 11.01.2008 21:26:16 von mmorrison93
Thanks in advance for any help on this problem, but i have an
HttpHandler that looks at the requested url and and tranfers context
to a particular file. The problem is the transfer will only work if
the file is located in the root directory, if I try to transfer
context to a file in a subdirectory the Server.Transfer method returns
an error, any thoughts on this?
Thank you
Re: HttpContext.Server.Transfer Problem
am 11.01.2008 21:57:50 von George Ter-Saakov
What "error"? Can you copy and paste it? Usually errors are selfexplanatory.
PS: I do not think you should be using Server.Transfer from HttpHandler.
Use HttpContext.Current.RewritePath
George.
wrote in message
news:7b3464d7-250f-4dfa-8c8d-1cba4b86e916@y5g2000hsf.googleg roups.com...
> Thanks in advance for any help on this problem, but i have an
> HttpHandler that looks at the requested url and and tranfers context
> to a particular file. The problem is the transfer will only work if
> the file is located in the root directory, if I try to transfer
> context to a file in a subdirectory the Server.Transfer method returns
> an error, any thoughts on this?
>
> Thank you
>