我知道,它有可能在沙箱解决办法中建立一个维基页,其中:
SPUtility.CreateNewWikiPage(list, "{mysiteurl}/CodeGeneratedPage.aspx");
但是,我(如果可能的话)如何能够建立一个网页,把网站部分列入我的文件图书馆? 由于我能够找到(例如.this) ,只是从事农业解决办法。 是否有工作?
我知道,它有可能在沙箱解决办法中建立一个维基页,其中:
SPUtility.CreateNewWikiPage(list, "{mysiteurl}/CodeGeneratedPage.aspx");
但是,我(如果可能的话)如何能够建立一个网页,把网站部分列入我的文件图书馆? 由于我能够找到(例如.this) ,只是从事农业解决办法。 是否有工作?
良好。 您不能在沙文法中使用<代码>SPLimitedWebPartmanager,因此可以将其用于将网站内容放在网页上。
将WebParts提供给页面的唯一方法是声明性方式(即XML),因此您必须在elements.XML
文件中执行类似操作:
<AllUsersWebPart WebPartZoneID="MainWebPartZone" WebPartOrder="1">
<![CDATA[
<webParts>
<webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
<metaData>
<type name="MyComp.WebParts.SampleWebPart, MyComp.WebParts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9f4da00116c38ec5" />
<importErrorMessage>Cannot import this Web Part.</importErrorMessage>
</metaData>
<data>
<properties>
<property name="Title" type="string">Sample WebPart</property>
</properties>
</data>
</webPart>
</webParts>
]]>
</AllUsersWebPart>
这些联系将帮助您:
并且更多:
How can i go about changing the distribution list as well as the email text for the email that goes out to site collection admin when a site collection approaches it s size limit? Thanks for your ...
I m looking for automated Functional Testing tools that can manipulate SharePoint sites, libraries, and documents thought the web interface. It needs to be extensible enough to handle any custom ...
We have a requirement to retrieve document details from a sharepoint document library. We understand that we can use either list web service or search web service. Can any one please let us know which ...
I want to enable Authorization on the Site map provider. We have enabled anonymous access to the site and we want the Site map provider to be visible only to authorized users. I tried ...
I have a sharepoint site, and I am calling a standard sharepoint web service. I create the web service request like this : wsDws.Url = this.SiteAddress + @"/_vti_bin/Dws.asmx"; When I use ...
I m sort of new to the custom parameters that can be setup on a DataView Webpart. There are 6 options: - None - Control - Cookie - Form - QueryString - Server Variable I think that None, Cookie and ...
I am accessing the SHDocVw.InternetExplorer from the SHDocVw.ShellWindowsClass(). I can see the page that the browser instance is currently on (the LocationURL property), but what I really need is ...
In SharePoint I can create a list column of type Number . I need to store monetary amounts and would like to be able to use this column type rather than having to create a new one. Are values of ...