将 Web 部件添加到 aspx 标记中的共享点页面 [英] Add web part to sharepoint page in aspx markup

查看:19
本文介绍了将 Web 部件添加到 aspx 标记中的共享点页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 aspx 页面,它被复制到 Project Server 安装的布局目录中.aspx 是具有 Web 部件区域的 Web 部件页面.如何在 Web 部件区域内的页面标记中添加 Web 部件?

I have an aspx page that get copied in the layouts directory of a Project Server instalation. The aspx is a web part page that has a web part zone. How can I add a web part in the markup of the page, within the web part zone?

推荐答案

布局目录中不能有可自定义的 Web 部件页面!这仅在存储在 SPWeb 中的文档库或其他文件夹中的 Web 部件页面上受支持,即您可以获得 SPFile 引用的 ASPX 文件.layouts 目录中 ASPX 页面上的 Web 部件必须添加为 ASPX 源中的 Web 控件.

You cannot have customizable Web Part pages in the layouts directory! This is only supported on Web Part pages stored in a document library or other folder in an SPWeb, i.e. ASPX files that you can get an SPFile reference to. Web Parts on ASPX pages in the layouts directory must be added as Web controls in the ASPX source.

这篇关于将 Web 部件添加到 aspx 标记中的共享点页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆