Server.Transfer(): Using this statement it not only redirects to the next page but also all the content of the page is transferred to next page. Data is persisted to next pages using Context.ItemCollection which keeps the page state alive.
Response.Redirect(): Using this statement the Context.Items loses the persistence to transfer the content to next page. Hence every page is treated as a seperate page.
Table of Content
- Abstract Classes
- Access Specifiers
- ASP.NET 2.0 Interview Questions
- Assembly and Namespaces
- Authentication in .Net
- Authorization in .Net
- Boxing vs Unboxing
- Const vs Read-only
- Const vs Read-only
- Constants in .Net
- Constructors
- Constructors of Extended Classes
- Cursor point to TextBox
- Data Abstraction
- Data Encapsulation
- Destructors
- Example on Encapsulation
- Fields in .Net
- Focus method
- Function Overloading
- Garbage Collections
- Gridview with Paging
- Indexers in .Net
- Inheritance and Extended Classes
- Inheritance in .Net
- Inheritance n Extended Classes
- Members of a Class
- Methods and Events
- Namespace used in EventLog
- Object
- Overriding and Hiding
- Page Life Cycle
- Properties in .Net
- Ref vs Out parameter
- Server.transfer vs Response.redirect
- Signatures of Main[] fn
- State Management
- String vs String Builder
- Types of parameters
- Using Keyword
- Value type vs Ref type
- Versioning in .Net
- What are Class Methods
- What are Classes
- What are Constructors
- What are Delegates
- What are Objects
- What is View State
- When to OverLoad
Monday, May 31, 2010
Subscribe to:
Post Comments (Atom)
1 comments:
Just to add up a little more points
Server.Transfer
We can transfer only to pages within our web application. We cannot transfer to yahoo.com
It does not update the browser url.
It may be a problem when users want to bookmark the page.
It processes from one page to the next without making a roundtrip back to the client browser (so url is not updated).
So it is faster
Response.Redirect
We can transfer to page within our application and also other pages.
It updates the browser url.
This performs a roundtrip back to the client browser (url is updated).
So it is slower.
Post a Comment