What is the difference between Server.Transfer and Response.redirect?
Server.Transfer() : this not only request the page, but also all the content of the requested page is transferred to Next page. Data can be persist across the pages using Context.Item collection, which is one of the best way to transfer data from one page to another keeping the page state alive.
Response.Redirect() :Context.Items loses the persistence when navigate to destination page. In earlier versions of IIS, if we wanted to send a user to a new Web page, the only option we had was Response.Redirect. While this method does accomplish our goal, it has several important drawbacks. The biggest problem is that this method causes each page to be treated as a separate transaction.
Subscribe to:
Post Comments (Atom)
Comments (0)
Post a Comment