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

Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?

2 Answers  


Explain different pipelining hazards and how are they eliminated? : Dot net architecture

0 Answers  


how do u achieve multilevel inheritance in .NET ?

9 Answers   Accenture, Ness Technologies, SteelWedge,


What are the major differences between services and web services?

0 Answers  


What is biginteger and when would you use that?

0 Answers  






does .NET support multiple inheritance ?

13 Answers   Ness Technologies,


what are constructors and destructors?

0 Answers   Six Sigma,


what is the shortcut key for toolbox and add existing item?

1 Answers   Six Sigma,


What is .net transaction?

0 Answers  


Explain different pipelining hazards? : Dot net architecture

0 Answers  


What are the types of application software?

0 Answers  


question related to table havi colspan and row span

0 Answers   PCS,


Categories