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

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

问题描述

我有拿到一个项目服务器安装目​​录的布局目录复制一个aspx页面。在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部件页,即ASPX文件,你可以得到的是spfile引用。在布局目录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部件添加到SharePoint页面中的ASPX标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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