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

what is m n c

1 Answers   NIIT,


How can I see what assemblies are installed in the global assembly cache?

1 Answers  


when we use ajax in.net

1 Answers  


What is ServerVariables collection?

2 Answers  


How are sessions maintained? A. The browser sends a cookie to the server with each request. B. The browser sends a Querystring variable to the server with each request. C. The browser sends a hidden Form variable to the server with each request. D. The browser sends a long variable to the server in the BODY of each request. E. None of the above.

1 Answers  


What is Response object? How is it related to ASP's Response object?

1 Answers   MCN Solutions,


Define a filesystemobject object?

1 Answers  


How do I open aspx files on android?

1 Answers  


What is msmq?

1 Answers  


Should user input data validation occur server-side or client-side?

1 Answers  


can any one send me some real time sap crm interview question along with answer .my email id is psundeep@ymail.com

0 Answers   IBM,


What is a Form collection?

1 Answers  


Categories