This documentation is archived and is not being maintained.
@ MasterType
Visual Studio 2010
Provides a way to create a strongly typed reference to the ASP.NET master page when the master page is accessed from the Master property.
<%@ MasterType attribute="value" [attribute="value"...] %>
Use the @ MasterType directive to set the strong type for the master page, as accessed through the Master property.
Note |
|---|
if VirtualPath is not defined, the type must exist in one of the currently linked assemblies, such as App_Bin or App_Code. |
If both attributes, TypeName and VirtualPath, are defined, the @ MasterType directive will fail.
Show:
Note