Which of the following transfer execution directly to another page?

  1. Server.Transfer

  2. Response.Redirect

  3. Both A) and B)

  4. None of the Above


Correct Option: C

AI Explanation

To answer this question, you need to understand the concepts of Server.Transfer and Response.Redirect.

Option A) Server.Transfer - This option is correct because Server.Transfer is a method in ASP.NET that transfers the execution directly to another page on the server. It preserves the server resources and improves performance by avoiding the round-trip to the client.

Option B) Response.Redirect - This option is correct because Response.Redirect is a method in ASP.NET that redirects the user to a different page or URL. It sends a response to the client with a new URL, and the client's browser makes a new request to that URL. This results in a round-trip to the client.

Option C) Both A) and B) - This option is correct because both Server.Transfer and Response.Redirect transfer the execution directly to another page, but they work in different ways.

Option D) None of the Above - This option is incorrect because both Server.Transfer and Response.Redirect transfer the execution directly to another page.

The correct answer is C) Both A) and B). This option is correct because both Server.Transfer and Response.Redirect transfer the execution directly to another page.

Find more quizzes: