Difference between server.transfer and response.redirect, DOT NET Programming

What is the difference between Server.Transfer and response.Redirect?

The difference  between the Server.Transfer and the response.Redirect them are as follows:-

1)Response.Redirect send a  message to the browser saying it to move to some other  page, while server.transfer does not send any message to the browser but rather redirects  user directly from the server itself. So in the server.transfer there is no round trip while in the  response.redirect there is a round trip and hence puts a load on the server.

2) In the Using Server.Transfer you can't redirect to a different from the server itself. For e.g. if your server is www.yahoo.com you can use server.transfer to move to www.microsoft.com but you can yes move to www.yahoo.com/travels, i.e. within websites. This cross server redirect is only possible using Response.redirect.

3) With the server.transfer you can preserve your all  information. It has a parameter known as "preserveForm". So the existing query string  will be able to  call a  page. In response.redirect you can maintain the state, but has lots  of demerits.

Posted Date: 9/22/2012 3:39:19 AM | Location : United States







Related Discussions:- Difference between server.transfer and response.redirect, Assignment Help, Ask Question on Difference between server.transfer and response.redirect, Get Answer, Expert's Help, Difference between server.transfer and response.redirect Discussions

Write discussion on Difference between server.transfer and response.redirect
Your posts are moderated
Related Questions
How many types of generations are there in a garbage collector? Memory management in the CLR is separated into three generations that are building up by grouping memory segment

Question: (a) Outline four classes that allow you to work with File Streams. (b) (i) What potential problem can arise when you change items stored in an Application State

The project aims at converting a rough hand drawn diagram to a neat diagram. Is it a good project for B.Tech level?Please tell how to go about it??

I have a code in C# which uses Microsoft Solver Foundation to solve linear programming model. But the problem is the code is too long, there are too many variables and constraints,

What are the  steps of acquiring a proxy object in Webservice? The following steps are required to get a proxy object of a webservice at the client side:- 1.     The Clie

What is the use of a .disco file? A client application uses a .disco file to locate or discover the documents that have the description of a Web service. The .disco file having

deploying a mysql vb offline desktop application in new system that doesnot have any server or database created

The Events are always public as they are meant to serve each one registering to it. But you can access modifiers in the events.You may have events with protected keyword which will

What are shared (VB.NET)/Static(C#) variables? Shared/Static classes are used when a class gives functionality which is not specific to any instance. In brief if you want an ob

What is Query String and what are their benefits and limitations? The query string is the information sent to the server appended to the end of a page URL. The benefits of u