| |||||||
@ MasterTypeASP.NET Syntax ASP.NET Page Syntax Page Directives .NET Framework version 2.0 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" ... ] %> Attributes
RemarksThe @ MasterType directive is used to set the strong type for the master page, as accessed through the Page.Master property.
If both attributes, TypeName and VirtualPath, are defined, the @ MasterType directive will fail. Syntax ExampleThe following code example demonstrates how to set the virtual path to an ASP.NET master page. <%@ MasterType VirtualPath = "~/masters/SourcePage.master�" %> See Also |
| ||||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme