ASP .NET Interviewfragen und Antworten
Question: What is the difference between Server.Transfer and Response.Redirect?Why would I choose one over the other?Answer: Server.Transfer transfers page processing from one page directly to the next pagewithout 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 performas 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. |
Zum Wiederholen speichern
Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.
Melde dich an, um Lesezeichen, schwierige Fragen und Wiederholungssets zu speichern.
Ist das hilfreich? Ja Nein
Am hilfreichsten laut Nutzern:
- What’s the difference between Response.Write() andResponse.Output.Write()?
- Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process.
- What methods are fired during the page load?
- What namespace does the Web page belong in the .NET Framework class hierarchy?
- When during the page processing cycle is ViewState available?