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
Image Generator (Ngen.exe) The Ngen.exe (Native Image Generator) allows you to run the JIT compiler on your assembly's MSIL and generate native machine code which is cached to

What is the difference between int and int32. There is no difference among int and int32. System.Int32 is a .NET Class and int is an alias name for System.Int32.

What is the difference between System exceptions and Application exceptions? All exception is derived from Exception Base class. Exceptions are generated programmatically or ca

Regular IT Support Work Project Description: I have a number of clients in the UK that I give you IT support for on their Windows desktops and servers and linked peripherals

How to decide on the design consideration to take a Datagrid, datalist or repeater? So many make a blind choice of choosing datagrid directly, but that is not the right way.


Print Pyramids of Numbers - C# Program Hello can you please provide me some examples regarding to the Print Pyramids of Numbers in C#.

Finding the frequencies - C# Program: Please let me know how to find Frequencies in C#.

Avoid deadlock in threading The best  and careful planning may avoid deadlocks.There are so many ways Microsoft has provided by which you can decrease deadlocks for example Int