Attribute 'DisplayTitle' is not a valid attribute of element 'WebPartZone'
-
10-12-2019 - |
Question
I have a Microsoft.SharePoint.WebPartPages.WebPartZone
declared on an application page:
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages"
Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<WebPartPages:WebPartZone ID="Foo" runat="server" DisplayTitle="Bar">
</WebPartPages:WebPartZone>
Visual Studio 2010 displays the following warning "Message" in the Error List window:
Validation (ASP.Net): Attribute 'DisplayTitle' is not a valid attribute of element 'WebPartZone'.
Even though it is: WebPartZone.DisplayTitle Property
Has anyone ever had to fix this? There's one of these messages for every page in my project (but only when I have the markup open)...
Solution
As you can see on your link, DisplayTitle
is Read-only, (get only).
Use HeaderText
to change the title
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange