DIFFERENCE BETWEEN RESPONSE.REDIRECT AND SERVER. TRANSFER
DIFFERENCE BETWEEN RESPONSE.REDIRECT AND SERVER. TRANSFER
Server.Transfer:
- Server.Transfer only works with ASPX pages not HTML pages .
- Server.Transfer only works with internal URL not external URL .
- In case of Server.Transfer there is no change in URL(FOR SECURITY PURPOSE ) .
- Server.Transfer is Faster as there is server process .
Response.Redirect :
- Response.Redirect works with ASPX PAGES as well as HTML pages .
- Response.Redirect works with internal URL as well as external URL .
- In case of Response.Redirect we change the URL i.e there is change in the URL.
- Response.Redirect is slow process as there is client process involved in it.