Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

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

Use HeaderText to change the title

share|improve this answer
    
HeaderText, but you're right... and that was dumb... thanks! –  RJ Cuthbertson Jun 25 '13 at 14:03
    
Fixed the typo! –  Robert Lindgren Jun 25 '13 at 14:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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