The docs for @MasterType have this example.
<%@ Page masterPageFile="~/MasterPage.master"%>
<%@ MasterType virtualPath="~/MasterPage.master"%>
Why is @MasterType
even needed? Couldn't the compiler automatically take the same actions based solely on @Page masterPageFile
? When would you not want to use both?