Differentiate between Server.Transfer and Response.Redirect with functionality? Why we can choose one over the other?



Differentiate between Server.Transfer and Response.Redirect with functionality? Why we can choose on..

Answer / Praveen Singh Yadav

Server.Transfer performs an internal redirect without causing a round-trip to the client, while Response.Redirect generates a new HTTP request to the browser. Server.Transfer preserves the current state and viewstate, but it does not allow cross-application redirection or URL modification. Response.Redirect allows for custom URLs and can be used for cross-application redirects, but it doesn't preserve viewstate. You may choose one over the other based on the specific requirements of your application, such as preserving state or allowing URL manipulation.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

How many types cache in asp net?

1 Answers  


how can u create the forms authentication?and what is the difference between forms authentication and windows authentication?

2 Answers   IBM,


What are the difference between overriding and overloading?

1 Answers  


Define a static class?

1 Answers  


Explain the advantages of asp.net.

1 Answers  


About Global .asax ?

6 Answers   Satyam,


What are the built-in objects in asp.net?

1 Answers  


Given an ASP.NET Web Form called WebFrom1, what class does the WebForm1 class inherit from by default? a) System.Web.Form b) System.Web.GUI.Page c) System.Web.UI.Page d) System.Web.UI.Form

3 Answers   Syntax Softtech,


what is Theme in Asp.net 2.0

1 Answers   Syntel,


What is the maximum length of textbox

1 Answers  


What is a Repeater Control and how does it works? and what is the diffrence b/w Gridview,datalist and repeater control?

2 Answers   USi,


What is the difference between application state and caching?

1 Answers  


Categories