得到母版页错误 [英] Got Master Page Error

查看:192
本文介绍了得到母版页错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在.aspx文件中,出现母版页错误:母版页文件'〜/ MasterPages / MasterPage2.master'无效。更正指定母版页中的问题。相关代码如下:

 <%@     Page    标题  =    语言  =  C#    MasterPageFile   = 〜/ MasterPages / MasterPage2 .master    AutoEventWireup   =  true    CodeFile   =  RequestStart.aspx。 cs   继承  =  RequestStart   %>  



MasterPage2.master位于/ MasterPages /文件夹中。 .aspx位于/ folder /中,与\ Masterpages \文件夹平行。

感谢您的帮助。

解决方案

习题解决了因为发现ccs文件被加载两次。感谢。

In an .aspx file, got Master Page Error: The Master Page file '~/MasterPages/MasterPage2.master' is not valid. Correct the problem in the specified Master Page. The related code is below:

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/MasterPage2.master" AutoEventWireup="true" CodeFile="RequestStart.aspx.cs" Inherits="RequestStart" %>


The MasterPage2.master is in /MasterPages/ folder. The .aspx is in a /folder/, which is paralle to the \Masterpages\ folder.
Thanks if you can help.

解决方案

Prob. solved as it was found that a ccs file was loaded twice. Thanks.


这篇关于得到母版页错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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