October 11, 2010

Server.Transfer and Response.Redirect in .net?

1)What is the difference between Server.Transfer and
Response.Redirect in .net? Why would I choose one over the other?

Answer: Server.Transfer transfers page processing from one page
directly to the next page without making a round-trip back to the client’s
browser. This provides a faster response with a little less overhead on the
server. Server.Transfer does not update the clients 
url history list or
current 
url. Response.Redirect is used to redirect the user’s browser to
another page or site. This perform as a trip back to the client where the
client’s browser is redirected to the new page. The user’s browser history
list is updated to reflect the new address.

1 comment:

Naviya Nair said...

I have read your blog its very attractive and impressive. I like it your blog.

Java Training in Chennai Java Training in Chennai
Dot Net Training in Chennai
PHP Training in chennai

Online Java Training Java Online Training
Dot Net Online Training