Multiple choice technology web technology

What is the location in web page to hook a different master page to it?

  1. Page_PreInit handler

  2. Page_Load handler

  3. Page_Init handler

  4. Page_Unload handler

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In ASP.NET, the master page must be set dynamically during or before the Page_PreInit event. Attempting to assign or modify the MasterPageFile property during Page_Init or Page_Load occurs too late in the page lifecycle and throws an InvalidOperationException.