我正在尝试将webpartzone添加到现有页面上。我正在使用SharePoint Designer(SPD中的网站操作 - >编辑)。我看到了很多asp标记,但是当itry添加类似的东西时

<WebPartPages:WebPartZone runat="server" Title="TestZone1" ID="TestZone1">
<ZoneTemplate></ZoneTemplate>
</WebPartPages:WebPartZone>
.

存在错误:此Web部件区域包含无效的非Web部件内容。使用代码视图更正内容,或单击以插入Web部件。

如何解决它?或者也许还有另一种方法可以将WebPartzones添加到现有页面?

有帮助吗?

解决方案

I tried adding your code to an aspx page and its working. Please to the following points from Microsoft.

Possible reasons include the following:

  1. A Web Part may be restricted to a specific zone on the Web Part Page by the Web Part developer or Web Part Page author, or you are not allowed to modify the Web Part zone.

  2. There are no zones on the Web Part Page.

  3. You do not have the appropriate permission to update the Web Part Page or modify zones on the Web Part Page.

  4. You receive a “missing assembly” message. Web Part developers can display a custom message when the Web Part assembly is not found. This can occur when the Web Part assembly file is not available, or when there is a version mismatch between the Web Part on your Web Part Page and the Web Part stored in the Web Part gallery.

  5. There is a problem with the Web Part file (.dwp). The file may not have well-formed XML, or the Web Part XML schema may be invalid.

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