Difference in Server.Transfer and Response.Redirect

1 | 2 | 3..17778

  • 22-01-2014, 20:22 PM
    MitchelMitchel
    Posts: 1

    Hello, what is the difference between  Response.Redirect and Server.Transfer? Why most people prefer using Response.Redirect?






  • 22-01-2014, 23:01 PM
    kbadaskbadas
    Posts: 6

     Welcome Mitchel.

    The basic difference is that Response.Redirect will create a new request to the server while Server.Transfer simply changes the content of the response with the one the new page would respond. For example using Response.Redirect("NewPage.aspx") from the CurrentPage.aspx, will send a redirect message to the client and create a brand new request while Server.Transfer will show the CurrentPage.aspx's content while maintaining the same request (the same url). As a result Server.Transfer reduces the server's traffic.

    I'm not sure if it is true that most developers prefer Response.Redirect, but  you should keep in mind that using Server.Transfer in pages where urls are important is not suggested as you may end up showing different things than the url was meant to represent and ruining the query string information.


  • 27-01-2017, 12:10 PM
    NyannaNyanna
    Posts: 0

    You make thigns so clear. Thanks for taking the time!

  • 01-05-2020, 17:45 PM
    EdypekEdypek
    Posts: 0
    Viagra Liquido https://buyciallisonline.com/# - buy cialis online cheap Order Levothyroxine No Prescription cialis 5 mg best price usa Cialis 5 Mg Erezione
  • 05-08-2020, 19:50 PM
    RobertZockyRobertZocky
    Posts: 0
    Meds information leaflet. Cautions. lexapro vs wellbutrin xl Medicament information sheet. Generic Name. tlex program Drugs prescribing information. Generic Name. cost prozac 20 mg online cost of cheap prozac 10mg without a prescription Drugs prescribing information. Short-Term Effects. cost prozac rx without a prescription how can i get prozac 10mg without insurance
  • 08-08-2020, 11:09 AM
    MelvinherMelvinher
    Posts: 0
    Medication information sheet. Brand names. cost lexapro medicine online Some trends of medicament. Read now. Drugs information. Effects of Drug Abuse. cost prozac medicine without a prescription Some about pills. Get here. Medicine information leaflet. Brand names. can i buy cheap prozac 20mg tablets Best about medication. Get here.
  • 26-08-2020, 15:25 PM
    76377637
    Posts: 0
    Rx6x2P hi guys http://xnxx.in.net/
  • 27-08-2020, 16:25 PM
    393887393887
    Posts: 0
    What are the hours of work? methocarbamol 750 mg tabletta Leading investors on the deal to buy a combined 29.99percent of Sinopec include one of China's biggestasset managers Harvest Fund Management Co Ltd taking 15 billionyuan with its subsidiary Harvest Capital Management
  • 27-08-2020, 16:25 PM
    977075977075
    Posts: 0
    How much is a First Class stamp? robaxin kaufen The company has been losing market share and subscribersbecause it charges customers membership fees to access reviewsand ratings on its site that Yelp Inc, TripAdvisor Inc and others provide for free.
  • 27-08-2020, 16:25 PM
    9277992779
    Posts: 0
    Insufficient funds bimatoprost ophthalmic solution uses The hashtag is being used by some video game fans around the world, (known as gamers), to troll Quinn and a number of other women in the games industry
  • 27-08-2020, 16:25 PM
    6081860818
    Posts: 0
    Very Good Site buy bimatoprost topical "There are those who say the Aussie should bounce from theselevels but my feeling is if it breaks below (a key support)against the kiwi that may be significant," said Daragh Maher, astrategist with HSBC in London.
1 | 2 | 3..17778


Post Reply