Server.Transfer() and Response.Redirect()

Server.Transfer() and Response.Redirect()

Working on my current project, I come up with a scenario to switch a visitor to a new page after some process.
Here I have an option to use either redirect() or server.transfer(). So what are the tradeoffs:

  • Redirect() would allow to navigate to other pages out of the current website unlike Transfer()
  • Redirect() needs a round-trip to client page but transfer() won’t need this which would make transfer() a bit fast

Well for my case, I am not redirecting to other page and I want it to be fast so – I have used Server.Transfer().

For questions related to page transfer refer http://msdn.microsoft.com/en-us/library/x3x8t37x.aspx

See how you would solve these known algorithm problems

Check if two strings are anagrams or not

testing k complementary pairs algorithm with junit

Find the pairs that makes K Complementary in the given array java solution

Check if there are three numbers a, b, c giving a total T from array A

binary tree problems with solution

Finding missing numbers from billion sequential number list file

Java solution for checking anagram strings – tell if phrases are anagrams

Find K Complementary numbers from array Java implementation

Implementing tokenizer and adding tokens to the linked list

Array reversal in Recurrsion

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*