What is difference between response.redirect and
server.transfer ?

Answer Posted / minhajul islam

1. Redirect can redirect to outside page while Transfer can
use page only in the same project.
Example : Redirect("www.yahoo.com") while transfer can
only inside current project page.

2. Redirect does not transfer content of the page while
Transfer transfers controls of current to transferred page.
For example if we use Multi-Page form and need to access
components of each page then we can use Transfer but must
use CrossPagePostBack.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use datasource in asp.net?

525


How you can access the values from the Repeater control in ASP.NET?

579


What is authorization in asp.net?

575


What is the difference between the get method () and post method ()?

523


How to use multiple scriptmanager controls in a web page?

606






Why do we need master page in asp.net?

533


Are cookies stored on server or client?

509


Describe the diffeerence between inline and code behind?

513


What is .net remoting?

571


Why asp.net mvc is better than asp.net? : Asp.Net MVC

499


What is a server cookie?

501


List of words of preprocessor in .net?

520


Explain how is a property designated as read-only?

553


Write code to send e-mail from an asp.net application?

550


What are the two types of web pages?

522