【问题标题】:Validation (ASP.Net): Attribute 'DisplayTitle' is not a valid attribute of element 'WebPartZone'验证 (ASP.Net):属性“DisplayTitle”不是元素“WebPartZone”的有效属性
【发布时间】:2013-06-25 22:09:13
【问题描述】:

我在 ASP.NET 页面上声明了一个 SharePoint WebPartZone。

这与<asp:WebPartZone/> 控件不同。

<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<WebPartPages:WebPartZone ID="LeftNavZone" runat="server" DisplayTitle="loc:LeftNavZone">
</WebPartPages:WebPartZone>

Visual Studio 2010 在错误列表窗口中显示以下“消息”:

验证 (ASP.Net):属性“DisplayTitle”不是元素“WebPartZone”的有效属性。

当它最肯定是......

WebPartZone.DisplayTitle Property

这不是类混淆问题,因为 DisplayTitle 也是 System.Web.UI.WebControls.WebParts.WebPartZone 控件的属性(继承自 WebPartZoneBase):

WebPartZoneBase.DisplayTitle Property

那是什么?我怎样才能摆脱这条消息?

当我打开项目中的每个页面时,都会有一条这样的消息……当然很烦人。

【问题讨论】:

    标签: asp.net visual-studio-2010 sharepoint


    【解决方案1】:

    DisplayTitle 是只读的...

    需要通过HeaderText属性设置。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-12-15
      • 2021-04-30
      • 1970-01-01
      • 1970-01-01
      • 2013-04-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多