Добавить пользовательский WebPartZone на существующую страницу

sharepoint.stackexchange https://sharepoint.stackexchange.com//questions/72760

Вопрос

Я пытаюсь добавить webpartzone на существующую страницу.Я работаю с SharePoint Designer (действия сайта -> редактировать в SPD).Я вижу много разметки ASP, но когда он, чтобы добавить что-то вроде

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

Есть ошибка: эта зона веб-части содержит недействительный контент без веб-части.Используйте вид кода, чтобы исправить содержимое или нажмите, чтобы вставить веб-часть.

Как я могу это исправить?Или, может быть, есть еще один способ добавить 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 с атрибуция
Не связан с sharepoint.stackexchange
scroll top