0

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)...

1 Answer 1

1

As you can see on your link, DisplayTitle is Read-only, (get only).

Use HeaderText to change the title

2
  • HeaderText, but you're right... and that was dumb... thanks! Commented Jun 25, 2013 at 14:03
  • Fixed the typo! Commented Jun 25, 2013 at 14:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.