What is the difference between Server.Transfer and
Response.Redirect? Why would I choose one over the other?

Answers were Sorted based on User's Feedback



What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over ..

Answer / raghumadhav tirunagari

server.Trnasfer will prevent round trip. it will redirect
pages which or in the same directory. NO way to pass the
query strings . Thru http context we can able to get the
previous page control values.

Response.Redirect : There is a round trip to process the
request. We can redirect to any page external / internal
other than aspx. We can pass the query string thru which we
can manage sessions.

Is This Answer Correct ?    6 Yes 0 No

What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over ..

Answer / manjunath

1)response.redirect sends the message to the browser to
send to different pages while server.transfer will not send
the message rather redirect user directly to some differnt
page.
so there is no round trip in server.transfer but
response.redirect has the round trip puttind load on the
server.

2)server.transfer will not redirect to the different server
while response.redirect can redirect to any different
server.

3)server.transfer can store data using paramater
called "preserved form" , this query strings are available
in the next calling pages.In latter it is not possible.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More Dot Net AllOther Interview Questions

what is inheritancy where u required ?

0 Answers  


Which is the best institute in chennai to learn DotNet? Please help.

48 Answers   HCL, Infosys, NIIT,


if there are two application 1 and 2 having a variable x in both app if client1 changes value of x in 1 app client 2 want reads the value of x from 2 app what resultant value will he get

0 Answers   PCS,


What is the application frame host?

0 Answers  


How cache is used? : Dot net architecture

0 Answers  






Please tell me the .net 2.5 frame work with example

2 Answers  


What happens when you try to update data in a dataset in .net while the record is already deleted in sql server as backend?

0 Answers  


what are the fundamental and common properties of .net controls?

0 Answers   Six Sigma,


Explain write back and write through caches? : Dot net architecture

0 Answers  


Explain the types of memory management? : .NET Architecture

0 Answers  


define cache memory? : Dot net architecture

0 Answers  


what are login controls?

0 Answers   Six Sigma,


Categories