Creating nested master pages in ASP.NET Web Application

后端 未结 1 1517
野的像风
野的像风 2021-01-22 07:51

Is it possible to create nested master pages in an ASP.NET Web Application projects as one can do in ASP.NET Website projects?

I am using Visual Studio 2008 and working

相关标签:
1条回答
  • 2021-01-22 08:04

    Yes, from version 2 of the .NET framework, nested master pages have been supported. One caveat is that you won't get design time support in Visual Studio 2005 if you have nested master pages. This isn't an issue in VS 2008.

    <%@ Master Language="C#" AutoEventWireup="true" CodeFile="SecondLevelMaster.master.cs" Inherits="SecondLevelMaster" **MasterPageFile="~/RootMaster.master"** %>
    
    0 讨论(0)
提交回复
热议问题