Results 1 to 4 of 4

Thread: Response.Redirect/Server.Transfer

  1. #1

    Thread Starter
    Hyperactive Member spoiledkid's Avatar
    Join Date
    Oct 2002
    Location
    Canada
    Posts
    437

    Response.Redirect/Server.Transfer

    What is the different between these two methods ? They seem to be achieving the same thing.

  2. #2
    Hyperactive Member Grunt's Avatar
    Join Date
    Oct 2004
    Location
    Las Vegas
    Posts
    499

    Re: Response.Redirect/Server.Transfer

    here ya go...

    this explains it all.

    apparently server.transfer is for the website only, and response.redirect is for pages outside the scope of your project.

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Response.Redirect/Server.Transfer

    THat's only a part of it.....

    In reality.... server.transfer does just that, it transfers processing of the current page to a new location. It can be a new file on a new server, or a new file on the same server. This can be done at any time in the page generation....even after everything has been sent to the browser.

    Response.Redirect on the other hand, actualy changes the address in the browser iself, sending it to another address. And it can ONLY happen IF nothing else has yet been sent to the client's browser.

    Tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089

    Re: Response.Redirect/Server.Transfer

    Server.tranfer - transfers all the "posted" data from the page it is being transfer to the page transfered to.

    Server.Transfer saves a round trip from the server end to the browser.
    One limittation, is that you can call ONLY aspx pages with server.transfer and that too those which belong to your site.

    Response.redirect is a good as clicking a "Href" link.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width