Tuesday, July 7, 2009

What are the Differences between Server.Transfer and Response.Redirect ?

Difference between Server.Transfer and Response.Redirect

























Sno Server.Transfer Response.Redirect
1 The navigation happens on the server-side ,so client history is not updated The navigation happens on the client-side ,so client history is  updated
2 Data can be persist accros the pages using Context.Item collection Context.Items loses the persisitance.
3 No Round-trips Makes a Round-trip
4 Has Good encapsulation No

Daily Tips- Tip #3 - Stopping the user from Right-Clicking

For that you need to do one simple thing , just change the body tag as follows,


<Body oncontextmenu="return false">


This will stop the right-clicking


www.codecollege.NET