IT Community - Software Programming, Web Development and Technical Support

What is the difference between Server.Transfer and Response.Redirect? Why would I cho

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 ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > ASP and ASP.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 07-18-2007, 05:48 AM
prasath prasath is offline
D-Web Sr.Programmer
 
Join Date: Jul 2007
Location: Chennai
Posts: 173
prasath is on a distinguished road
Thumbs up What is the difference between Server.Transfer and Response.Redirect? Why would I cho

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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 07-19-2007, 01:41 AM
Gopisoft Gopisoft is offline
D-Web Sr.Programmer
 
Join Date: Feb 2007
Posts: 119
Gopisoft is on a distinguished road
Default Re: What is the difference between Server.Transfer and Response.Redirect? Why would I

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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

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 12:07 AM
What is the difference between Server.Transfer and Response.Redirect?.. H2o ASP and ASP.NET Programming 4 11-22-2007 04:25 AM
Difference between Server.Transfer and Response.Redirect Arun ASP and ASP.NET Programming 4 09-19-2007 09:52 PM
example of Server.Transfer and Context Handler hanusoft ASP and ASP.NET Programming 1 09-06-2007 06:08 AM
If I use Response.Redirect in try block exception occurred in c#, Why? kingmaker C# Programming 1 07-19-2007 03:51 AM


All times are GMT -7. The time now is 04:13 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0