该页面有一个或多个与masterpage中的控件不对应的页面 [英] the page has one or more that do not correspond with controls in masterpage

查看:195
本文介绍了该页面有一个或多个与masterpage中的控件不对应的页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在母版页中创建新网页时。



设计页面: -



页面有一个或多个< asp:content>不符合< asp:ContentPlaceHolder>主页中的控件。





来源页: -



when i hav try to create new web page in master page.

Design page:-

the page has one or more <asp:content> that do not correspond with <asp:ContentPlaceHolder> controls in masterpage.


Source Page:-

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>

推荐答案

查看此



Page有一个或多个< asp:content xmlns:asp =#unknown>与< asp:contentplaceholder>不对应的控件主页面中的控件 [ ^ ]


这篇关于该页面有一个或多个与masterpage中的控件不对应的页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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