我知道每个人都这样做,但我找不到它在msdn上做的实际答案...

当页面中定义了一个生成的icOdeTagcode时,您将设置为:

<WebPartPages:WebPartZone runat="server" ID="Center" Title="loc:Center">
  ...
</WebPartPages:WebPartZone>
.

您可以在此站点上找到如此如此如此:

渲染webpartzone是大声

定位数据视图web部分身体webpartzone

默认的custome webpart在自定义站点页面上变得静态

我假设“loc:”表示本地化(或者也许意味着位置?)。但这是什么?

有帮助吗?

解决方案

In SharePoint 2010 WebPartZone Title property is obsolete and DisplayTitle should be used instead.

Title property is declared as

[Obsolete("Use DisplayTitle instead.")]
    public string Title
    {
      get
      {
        return this.DisplayTitle;
      }
      set
      {
        this.HeaderText = value;
      }
    }

According to MSDN DisplayTitle property:

A string that contains the title text for a zone. The default is the value of the base HeaderText property.

DisplayTitle

DisplayTitle property value could be specified as a regular string or localization string. For case of localization string the following format is used: "loc:{ResourceKey}",for example "loc:Center"

In that case it value is retrieved by key from resource file Microsoft.SharePoint.WebPartPages.strings.resources embedded into assembly Microsoft.SharePoint.intl.dll

许可以下: CC-BY-SA归因
scroll top