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
Decision Making and Branching - C# Program Need Programming help on Decision Making and Branching in C#.

What is marshalling and types of marshalling? The Marshaling is used when an object is converted so that it can be sent across the network or across the application domains. Th

How we get the current culture of the environment in windows and ASP.NET? The "CultureInfo.CurrentCulture" represents the current culture of the environment. For illustrate if

Need desktop application for inventory system Project Description: For my distribution unit, I want inventory system (purchase / sale / returns / reports ) based on customize

What are the core functionalities in XML .NET framework? The XML API for the .NET Framework includes the following set of functionalities: XML readers With XML readers

Connect a Software Application to a Database Backend Acquire the knowledge and develop the skills needed to prototype an end user application using a rapid application dev

What is an IL? Intermediate Language is also called as MSIL (Microsoft Intermediate Language) or CIL (Common Intermediate Language). All .NET source code is compiled to IL. IL

Project Description: I have a website that I have prepared, but I would like someone to make it look nicer. Most of the functionality is there, but I need help with design which

What is the difference amonga system workflow and a human workflow? A system workflow is a workflow that is developed to automate interactions between applications. Such workfl

Project Description: System is used for tracking company's activities through several projects by keeping track of incomes and expenses per project. This project is fairly ea