在创建ASP.NET Web应用程序的嵌套母版页 [英] Creating nested master pages in ASP.NET Web Application

查看:95
本文介绍了在创建ASP.NET Web应用程序的嵌套母版页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能创建一个ASP.NET Web应用程序项目嵌套母版页作为一个可以在ASP.NET网站项目呢?

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

我使用Visual Studio 2008和ASP.NET Web应用程序的工作。在创建母版页没有选项选择其他主网页,其中是否有可用将允许我创建嵌套母版页。

I am using Visual Studio 2008 and working on an ASP.NET Web Application. While creating a master page there is no option to choose another master page which if was available would have allowed me to create nested master pages.

有任何人都遇到了类似的问题?围绕建议的任何职务?

Have anyone faced similar issue? Is any sort of work around recommended?

感谢您事先的任何帮助。干杯。

Thanks in advance for any help. Cheers.

推荐答案

是的,从.NET框架2.0版本,嵌套母版页提供了支持。有一点需要注意的是,你不会得到在Visual Studio 2005设计时支持,如果你有嵌套母版页。这不是在VS 2008的一个问题。

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"** %>

这篇关于在创建ASP.NET Web应用程序的嵌套母版页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆