What is difference between Server.transfer and
Response.redirect ?

Answers were Sorted based on User's Feedback



What is difference between Server.transfer and Response.redirect ?..

Answer / sri

server.trasfer directly transfer the execution of a page to
another page without taking the client into the
picture.while response.redirect sends the response to the
client browser and directs him to make a request to call a
page( called round trip).it is better to use
server.transfer when you do not want to execute code on
client.

Is This Answer Correct ?    29 Yes 5 No

What is difference between Server.transfer and Response.redirect ?..

Answer / hema

Server.Transfer redirects directly to the new url. It does
not take a round trip. where as response.redirect tells the
client to make a request to the new url. this takes a round
trip. so it takes so much time. so server.transfer is
better when compared to response.redirect

Is This Answer Correct ?    17 Yes 4 No

What is difference between Server.transfer and Response.redirect ?..

Answer / yugandhar reddy

Request.Redirect tranfers the user to the new page.The new
page can be in the same application or outside the
application.Browser upgradation of new url i.e round trip
to client takes place.It cannot take the current form
control values to the new page byitself.using querystring
only it can take.

ex: Request.Redirect("Default2.aspx");
where as Server.Transfer redirects to the new page that
should be present in the same application.single trip takes
place i.e no browser upgradation of new url.It can take
current for control values to the new page using
preserveform attribute.

ex : Server.Transfer("Default2.aspx");

Is This Answer Correct ?    9 Yes 0 No

What is difference between Server.transfer and Response.redirect ?..

Answer / hema

Server.transfer transfers to a page on the server only
whereas response.redirect redirects to any page. In
server.transfer, the new URL is not displayed. whereas in
response.redirect the new url is displayed.

Is This Answer Correct ?    10 Yes 2 No

What is difference between Server.transfer and Response.redirect ?..

Answer / kiran kumar

Server.Transfer: - This redirects the client with in the
same application ie, from one ASP page to other ASP page
with in the application. This will not update the history.

Response.Redirect: - This redirects the client to the other
URL ie, from one ASP page to other applications page. This
will update the history.

Is This Answer Correct ?    7 Yes 1 No

What is difference between Server.transfer and Response.redirect ?..

Answer / rj

without query string we can access previous page control
values in server.transfer method. Round trip not allowed

In the response.redirect method using query string we can
access the previous page controls values. Round trip allowed

Is This Answer Correct ?    3 Yes 0 No

What is difference between Server.transfer and Response.redirect ?..

Answer / khaleek ahmad

1) In Response.Redirect previous page is not accessible
while in Server.Transfer it is optional.
Server.Transfer(URL,bPreserveForm);

2) Server.Transfer use only within the server.But
Response.Redirect can be use ouside the server.But it should
be a full path.

For more detail please see at
http://interview-preparation-for-you.blogspot.com/2010/12/difference-between-servertransfer-and.html

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More ASP Interview Questions

we are doing Design of Placement Website as our academic project. Home page is in c#.net format and register page is in asp.net format. We met a problem in this.register page is not linked in home page. how i complete my project with out any change..?

0 Answers  


What is http header?

0 Answers  


Where will you code OPTION EXPLICIT in an ASP application? WHY?

1 Answers  


. which tag i need to use manually to bind columns in a datagrid ?

0 Answers  


what is open item management in sap fico?

1 Answers  






What is the default scripting language in asp?

0 Answers  


What should the developer use in order to have an Active Server Page (ASP) invokes a stored procedure on a SQL Server database? A. ADO B. RDO C. RDS D. OLEDB E. None of the above.

1 Answers  


can we place Global.asa into "bin" directory instead of Root directory?

3 Answers   Satyam,


How does non-deterministic garbage collection affect my code?

0 Answers  


In how many ways you can connect to the Database?

2 Answers   TCS,


Explain how can you overload a method?

0 Answers  


Explain the post and get method?

0 Answers  


Categories