What is the difference between Server.Transfer and response.Redirect
What is the difference between Server.Transfer and response.Redirect ?
Following are the major differences between them:-
? Response.Redirect sends message to the browser saying it to move to some different page, while server.transfer does not send any message to the browser but rather redirects the user directly from the server itself. So in server.transfer there is no round trip while response.redirect has a round trip and hence puts a load on server.
? Using Server.Transfer you can not redirect to a different from the server itself. Example if your server is www.yahoo.com you can use server.transfer to move to www.microsoft.com but yes you can move to www.yahoo.com/travels, i.e. within websites. This cross server redirect is possible only using Response.redirect.
? With server.transfer you can preserve your information. It has a parameter called as “preserveForm”. So the existing query string etc. will be able in the calling page.
If you are navigating within the same website use “Server.transfer” or else go for “response.redirect()”
2007-10-24, 4581👍, 0💬
How To Select an Oracle System ID (SID)? - Oracle DBA FAQ - Creating New Database Instance Manually ...
How To Call a Sub Procedure? - Oracle DBA FAQ - Creating Your Own PL/SQL Procedures and Functions To...
How do we assign page specific attributes ? Page attributes are specified using the @Page directive.
How To Calculate Expressions with SQL Statements? - MySQL FAQs - Introduction to SQL Basics There is...
What’s the difference between Unit testing, Assembly testing and Regression testing? Unit testing is...