Site.Master没有在Startup上显示? asp.net2010 [英] Site.Master is not showing on Startup? asp.net2010

查看:71
本文介绍了Site.Master没有在Startup上显示? asp.net2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的第一个项目...我创建了一个带菜单的Site.Master ..我创建了一些页面for_home,AboutUs.aspx等..

来自菜单Navigateurl也提到了页面...没问题。但是当我跑步时,site.master没有显示..它只显示For_Home.aspx ....没有site.master数据......



那么如何解决这个问题?...有什么遗漏吗?

感谢指导..

解决方案

< blockquote>当您将页面添加到项目中时,您是否指定它们是具有主页面的表单?这将为您的HTML根目录提供一个页面节点,其中包含一个属性,如MasterPageFile =〜/ Site.Master。


Hi, Its my first project...I create a Site.Master with menus..And I create some pages for_home, AboutUs.aspx etc..
From Menu Navigateurl also mentioned to pages...No problem..But while I run, the site.master is not showing..Its showing only the For_Home.aspx....without site.master data's...

So how to solve this problem?...Does anything is missed?
Thanks for the guidences..

解决方案

When you added your pages to your project, did you specify that they are forms with a Master page? That would give you a Page node at the root of your HTML for the form with an attribute like MasterPageFile="~/Site.Master".


这篇关于Site.Master没有在Startup上显示? asp.net2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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