What is the difference between Server.Transfer and
Response.Redirect? Why would I choose one over the other?

Answer Posted / vaibhav nagar

Response.Redirect sends message to the browser saying it to
move to some
different page, while server.transfer does not send any
message to the browser
but rather redirects the user directly from the server
itself. So in server.transfer
there is no round trip while response.redirect has a round
trip and hence puts
a load on server.
Using Server.Transfer you can not redirect to a different
from the server itself.
Example if your server is www.yahoo.com you can not use
server.transfer to move
to www.microsoft.com but yes you can move to
www.yahoo.com/travels, i.e.
within websites. This cross server redirect is possible
only using
Response.redirect.
With server.transfer you can preserve your information. It
has a parameter
called as “preserveForm”. So the existing query string etc.
will be able in the
calling page.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When does a session actually start?

579


What is data cache in sql server?

600


How do you remove duplicates without using remove duplicate stage?

627


what is publisher?

1660


What is the use of execute non query in asp.net?

494






What is the difference between page-level caching and fragment caching?

542


Explain how is a property designated as read-only?

561


Explain the difference between asp and asp.net?

516


What is http response header?

578


Explain the significance of routing? : asp.net mvc

548


i develop a web application and i gave security setting i.e autherization and athentication now it work properly on my local system , now question is ,is this security setting ie autherization and athentication which i gave in web.config will it be enough strong to secure my application on internet or i have to use some 3rd party tool or software to get security .if yes --how ? if no--what is the alternate?

1519


What is a windows service?

568


What is difference between singleton and single call?

654


How to disable cut, copy and paste in TextBox using jQuery in asp.net?

640


Why is string called immutable data type?

600