Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > ASP Forms
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 5th, 2004, 06:18 AM
Authorized User
 
Join Date: Sep 2004
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default difference between server.transfer and response.re

If any one know the basic difference between server.transfer and response.redirect then tell me.



rekha
__________________
It is always safe to assume, not that the old way is wrong, but that there may be a better way...
*************************
Rekha
 
Old October 5th, 2004, 07:59 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

Response.Redirect is done by sending an HTTP header back to the browser with status code 302, which then causes the browser to request the redirected page from the server.

Server.Transfer just loads the new page at the server end without any broswer interaction.

A big difference in using Server.Transfer is that everything in the built-in collections (like Request.QueryString and Request.Form) is still available to the new page.

hth
Phil
 
Old October 6th, 2004, 03:00 AM
Friend of Wrox
 
Join Date: Sep 2004
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sureshbabu Send a message via Yahoo to sureshbabu
Default

Hi,
    I am jsu concluding from the first reply as follows.
If we use Resonse.redirect...
   Total requests are 2
If we use server.transefer
   Total requests are only one, because only 1st The URl which contains that code only interacts with browser.

Thanks
Suresh

 
Old October 6th, 2004, 04:43 AM
Authorized User
 
Join Date: Sep 2004
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for reply.

rekha





Similar Threads
Thread Thread Starter Forum Replies Last Post
Diff bet Response.Redirect and Server.Transfer alienaheart ASP.NET 1.0 and 1.1 Basics 1 October 2nd, 2008 12:51 AM
Server.Transfer vs. Response.Redirect mikener BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 2 April 10th, 2008 04:18 PM
Server.Transfer and Response.redirect lavanyarl ASP.NET 1.x and 2.0 Application Design 1 November 9th, 2004 03:31 AM
Difference between Session and Response.Cookies? Lucy Classic ASP Basics 1 March 2nd, 2004 02:03 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.