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
Question : (a) Describe what are streams in file handling and explain what should be done when accessing data in an existing file. (b) For what purpose are StreamReader an

Mention the name of the directory where it is essential to locate the proxy file to use a Web service. The proxy file must be kept in the /bin directory. This directory is situ

Sorting 2 Arrays & Merging into 1 - C# Program Hello, i didn't find the correct way to implement Array in my project. I am beginner for this language.  Please suggest me some

How do I write common code for different dot net framework data providers?

What are the ways to implement locking in ADO.NET? There are many ways to implement locking using ADO.NET which are shown below:- 1)Whenever we call "Update" method of DataA

Explain assemblies An assembly is a single deployable unit that having all the information about the implementation of : - classes - structures and - interfaces An

Explain the WSDL. WSDL is a short form for Web Services Description Language, which is used to explain a Web service in terms of the messages that it forms and accepts. The WS

I need Job Posting Software for Schools Project Description: I want to create a software program that will automatically post a job to multiple schools. Let me know if you

Finding Average of Array Elements - C# Program I need assignment help for Finding Average of Array Elements in C#. Can anybody send me there ideas?

Asp.net expert and simple html I am not new to the industry. I am seeking a long term asp.net developer to build and maintain a volleyball player management website. We would