What is the difference between response.redirect and
server.transfer, how to choose one among the other?

Answer Posted / praveen singh

Server.Transfer transfers page processing from one page
directly to the next page without making a round-trip back
to the client's browser. This provides a faster response
with a little less overhead on the server. Server.Transfer
does not update the clients url history list or current url.
Response.Redirect is used to redirect the user's browser to
another page or site. This performas a trip back to the
client where the client's browser is redirected to the new
page. The user's browser history list is updated to reflect
the new address.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I have created a configuration setting in my web.config and have kept it at the root level. How do I prevent it from being overridden by another web.config that appears lower in the hierarchy?

540


Can you explain one critical mapping? Performance issue which one is better? Whether connected lookup tranformation or unconnected one?

806


Explain what are the advantages of asp.net mvc framework? : asp.net mvc

515


What is caching? Explain.

549


Explain the difference between asp & asp.net.

545






Where would you use an ihttpmodule, and what are the limitations of any?

547


How do I use a proxy server when invoking a web service?

523


Which method is used to perform all validation at the page level?

532


What is owin authentication?

516


How does windows service lifecycle differ from a .standard. Exe?

508


Define reflection in .net?

556


If 200 is for all successful operation then why do we have 201 response codes?

522


How would you get asp.net running in apache web servers? Explain it's limitations.

529


What are the events in a page life cycle?

534


Can you change a master page dynamically at runtime? How?

499