Server.Transfer
|
Response.Redirect
|
When
you want to move from the current page to a different page in the
same website then you can use Server.Transfer. |
When
you want to redirect from the current page to a page belonging to
some other website then you can use Response.Redirect. |
When
you use Server.Transfer, the user will be redirected from the server
directly to the other page. |
When
you use Response.Redirect, a message will be sent to the browser requesting
it to move to the different page. |
This
is advantageous because the user is directly transferred to the page. |
This
has a considerable load on the server since it has a round trip due
to sending message to browser and then browser loading the new page. |
You
cannot redirect the user to a different server using Server.Transfer. |
Response.Redirect
gives you the facility to redirect to a different server. |
If you
use Server.Transfer, you can retain the existing data that you have
entered in the current page using preserveForm parameter. |
You
cannot retain data while using Response.Redirect. |