This is a discussion on What is the difference between Server.Transfer and Response.Redirect? Why would I cho within the ASP and ASP.NET Programming forums, part of the Web Development category; Hi, can anyone tell,What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi, can anyone tell,What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other? Thanks, Prasath.K |
| Sponsored Links |
| |||
| Response.Redirect sends Message to the Browser to redirect to the Page we wish to navigate . Server.Transfer Directly redirects to that Page. So round trip to the Client is avoided in the Server.Tranfer Method Also In server.Transfer method there is a Property called PreserveForm which enables us to Preserve the Form details form where we navigated . But in Response.Redirect Method, There is no connection between the Requested Page and the Routed Page.Thought there is a option to maintain the State it is Very tedious since we have to use the Session Varaiable to obtain state. Server.Transfer Method can redirect to the Page within the Web server Itself. But Response.Redirect can redirect to different servers. So if we want to navigate within the Web server, Server.Transfer Is the best.If we want to redirect to other Server Response.Redirect is the Best |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| The server rejected one or more recipient addresses. The server response was: 550 5.7 | poornima | ASP and ASP.NET Programming | 7 | 02-29-2008 01:07 AM |
| What is the difference between Server.Transfer and Response.Redirect?.. | H2o | ASP and ASP.NET Programming | 4 | 11-22-2007 05:25 AM |
| Difference between Server.Transfer and Response.Redirect | Arun | ASP and ASP.NET Programming | 4 | 09-19-2007 10:52 PM |
| example of Server.Transfer and Context Handler | hanusoft | ASP and ASP.NET Programming | 1 | 09-06-2007 07:08 AM |
| If I use Response.Redirect in try block exception occurred in c#, Why? | kingmaker | C# Programming | 1 | 07-19-2007 04:51 AM |