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

Assignment Help:

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.


Related Discussions:- Difference between server.transfer and response.redirect

I need game development tutorials, I need Game development tutorials Pro...

I need Game development tutorials Project Description: We need video tutorials like lynda for game development using unity. You must have developed games before and need to s

What are linq query expressions, What are LINQ query expressions? A LIN...

What are LINQ query expressions? A LINQ query, also known as a query expression, having of a combination of query clauses that identify the data sources for the query. It conta

Web portal development, Project Description: Looking for a developer who...

Project Description: Looking for a developer who will develop a web portal like zulutrade, some features will be taken from signaltrader the changes ould be like: 1) only cer

How do i send email message from asp.net?, The ASP.NET provides two namespa...

The ASP.NET provides two namespaces. The first is System.WEB.mailmessage class and the second is System.Web.Mail.Smtpmail class.

Assign page specific attributes, How do we assign page specific attributes?...

How do we assign page specific attributes? The Page attributes are specified by using the @Page directive.

Explain interface, Explain Interface? An interface is not a class. It i...

Explain Interface? An interface is not a class. It is an entity that is explained by the word Interface. An interface has no implementation; it only has the signature or in oth

What is the appfabric component, What is the AppFabric component? The A...

What is the AppFabric component? The AppFabric component is used to make access control and dole out messages across clouds and enterprises. It has a service-oriented architect

What is the difference between vb.net and c#?, Difference between VB.NET an...

Difference between VB.NET and C# This is the main debatable issue in .NET community and everyone treat their languages like religion. It is a very important matter which lan

What is common language runtime, What is "Common Language Runtime" (CLR)?  ...

What is "Common Language Runtime" (CLR)?  CLR is .NET equivalent of Java Virtual Machine (JVM). It is the runtime that changes a MSIL code into the host machine language code,

Differentiate between managed and unmanaged code, Differentiate between man...

Differentiate between managed and unmanaged code? Managed code is the code that is implemented directly by the CLR instead of the operating system. The code compiler first comp

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd