Explain the differences between Server-side and Client-side code.- Server-side code executes on the server. - Client-side code executes in the client's browser.
Server.Transfer and Response.Redirect.
Server.Transfer - Transfers page processing from one page directly to the next page. - No round-trip back to the client's browser. - Faster response with lesser overhead on the server. - Server.Transfer does not update the clients url history list or current url.
Response.Redirect - Used to redirect the user's browser to another page or site. - Performs 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.
|