"dee" <> wrote in message
news:...
> Hi,
> I'm curious why MS decided to have Transfer hide the target page's url
> invisible?
> Any guesses ?
> Thanks.
> Dee.
>
It executes another files code.
Server.Transfer requires no extra round-trip.
Response.Redirect does.
You use, as an example, Server.Transfer to transfer to another page when an
exception occurs so you can show a proper exception. If you use
Server.Transfer, you can use Server.GetLastError() to get the exception that
was thrown. If you use Server.Redirect, you cannot. That is one useful
reason why you would use Server.Transfer
HTH,
Mythran