[thelist] ASP tip - server.transfer

Ken Schaefer Ken at adOpenStatic.com
Wed Nov 2 19:47:26 CST 2005


-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Matt Warden
Sent: Thursday, 3 November 2005 11:35 AM
To: thelist at lists.evolt.org
Subject: Re: [thelist] ASP tip - server.transfer

Ken Schaefer wrote:
:> Huh?
:> 
:> Server.Transfer is completely transparent to a proxy server, or to anyone
:> bookmarking the page...
:
:I think he is talking about how proxy caching and bookmarking is based
:on URL, and the URL will not change with server.transfer
 
And how is this different to any other dynamic page, such as:

<%
If Hour(Now()) < 12 then
	Response.Write("Good Morning")
Else
	Response.Write("Good Afternoon")
End if
%>

where the content changes, but the URL doesn't?

All Server.Transfer (or Server.Execute) does is allow you to transfer page
execution to another file. But you could just as easily put the code from
that "other file" into the currently executing file (though that may have
impacts from a maintainability perspective). And the end user (or proxy
server) would have no idea whether you were doing a server.transfer or just
executing one particular branch of a code path in a single file.

Cheers
Ken



More information about the thelist mailing list