Wednesday, September 19, 2007

Server.Transfer vs Response.Redirect

just came across this article and i remembered that in my previous job, i encounter this situation whereby the old coders used server.transfer as all part of transfers. this is cool cos u get the exact same url as the first page. however, if u need to pass parameter in the url as we did(a lame requirement thou, due to the fact that external program is called). this is a gd thing to take note as a .net web developer. Cos server.transfer is faster due to the fact that it save on step of client needing to request the new url from server.(since server.transfer, transfer the web client once its called, whereas response.redirect need to re-request the new url after getting reply from server.

No comments:

Subscribe Now: