What is the difference between Server.Transfer and
Response.Redirect? Why would I choose one over the other?
Answer Posted / ganesh
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 ? | 10 Yes | 2 No |
Post New Answer View All Answers
Describe the difference between inline and code behind - which is best in?
What are Master Pages in ASP.NET?
What is the difference between stored procedure vs function?
What is a 401 redirect?
How to include silver light .xap page into asp.net web application and what is the purpose of using silverlight application?
How does asp page work?
Where the viewstate is stored after the page postback?
Is viewstate enabled by default?
What is the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc
How does session id work?
Is asp.net easy to learn?
Explain the use of duration attribute of @outputcache page directive.
Explain an object, class and method.
What is the use of web.config file?
What events will occur when a page is loaded?