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
What does the orientation property do in a menu control?
What are the layouts of ASP.NET Pages?
What is http pipeline in asp.net?
What are session and cookies?
Explain managed code an un-managed code.
Should I delete cookies?
Where is asp.net view state stored?
Explain the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc
Explain the difference between debug.write and trace.write?
How does viewstate work?
can any one find and tell the difference between dot net and php which one is best ? which one we get more salary? which one is stable and which one is best for freshers and also better in future and carrer ? which one we wil get more salary sir ? please send ur valuable suggestions to kiranpulsar2007@gmail.com
Explain the basic functionality of garbage collector?
What are server activated objects?
What permissions do asp.net applications posses by default?
Define caching.