Re: Custom HttpHandler and Server.Transfer
- From: bryan@xxxxxxxxxxxxxxxxx
- Date: Mon, 26 Dec 2005 08:59:31 -0600
Steven -
Thanks for the reply. The target of the Transfer is another page in
the same app that should be handled by the same custom handler. The
custom extension is set so that the handler gets invoked even if the
"pages" are not pesent, and there is in fact no physical page for the
target (nor is there for the source.)
Cheers,
Bryan
On Mon, 26 Dec 2005 03:48:16 GMT, stcheng@xxxxxxxxxxxxxxxxxxxx (Steven
Cheng[MSFT]) wrote:
>Hi Bryan,
>
>As for ASP.NET's Server.Transfer method, it can only help forward request
>between the pages or urls within the same asp.net webapplcation, we can not
>use Server.Transfer to direct the current request to a resource in
>different application or on other server. So what's the url you used in the
>Server.Transfer ?
>
>Regards,
>
>Steven Cheng
>Microsoft Online Support
>
>Get Secure! www.microsoft.com/security
>(This posting is provided "AS IS", with no warranties, and confers no
>rights.)
>
>
>--------------------
>| From: bryan@xxxxxxxxxxxxxxxxx
>| Subject: Custom HttpHandler and Server.Transfer
>| Date: Fri, 23 Dec 2005 20:27:01 -0600
>| Message-ID: <6acpq1h5lhpljps8k1u1vhuicadj5s5crg@xxxxxxx>
>| X-Newsreader: Forte Agent 3.1/32.783
>| MIME-Version: 1.0
>| Content-Type: text/plain; charset=us-ascii
>| Content-Transfer-Encoding: 7bit
>| Newsgroups: microsoft.public.dotnet.framework.aspnet
>| NNTP-Posting-Host: adsl-68-253-212-158.dsl.emhril.ameritech.net
>68.253.212.158
>| Lines: 1
>| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
>| Xref: TK2MSFTNGXA02.phx.gbl
>microsoft.public.dotnet.framework.aspnet:366884
>| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
>|
>| I've got a custom HttpHandler to process all requests for a given
>| extension. It gets invoked OK, but if I try to do a Server.Transfer I
>| get an HttpException. A Response.Redirect works, but I really need to
>| avoid the extra round-trip to the client.
>|
>| I've tried Passing the page name, the full URL, and the instance of
>| the handler class to the Transfer method, but everything gets me the
>| same error 500.
>|
>| Any help would be appreciated.
>|
>| Thanks,
>| Bryan
>|
.
- Follow-Ups:
- Re: Custom HttpHandler and Server.Transfer
- From: Steven Cheng[MSFT]
- Re: Custom HttpHandler and Server.Transfer
- References:
- Custom HttpHandler and Server.Transfer
- From: bryan
- RE: Custom HttpHandler and Server.Transfer
- From: Steven Cheng[MSFT]
- Custom HttpHandler and Server.Transfer
- Prev by Date: Re: confirm dialog , return value
- Next by Date: 'Container.DataItem' is not declared
- Previous by thread: RE: Custom HttpHandler and Server.Transfer
- Next by thread: Re: Custom HttpHandler and Server.Transfer
- Index(es):
Relevant Pages
|
Loading