我需要使用C#.net中的代码获得14个hive路径.
谁能告诉我怎么能这样做?
在Sharepoint 2010中,有没有办法更改要在VS2010中创建自定义Web部件的类别.
默认情况下,VS2010将自定义Web部件置于"自定义"类别.我很好奇,有没有办法让我们改变它,例如"MyCustomWebParts"类别.
我无法说清楚:

我需要C#中的示例代码,以在完成的pdf文档的所有页面上插入背景图像.我正在使用iTextSharp库.
如何在SharePoint 2010中查看特定内容数据库中关联的所有网站集?
任何建议或建议都非常感谢.
我有三个列表,如下所示:
Initiatives
-----------
Initiative (single line text)
Themes
------
Theme (single line text)
Initiative (Lookup from Initiatives:Initiative)
Points (number)
Features
--------
Feature (single line text)
Theme (Lookup from Themes:Theme)
Points (Lookup from Themes:Points) # <- This here works fine.
Initiative (Lookup from Themes:Initiative) # <- This here is busted and can't do.
Run Code Online (Sandbox Code Playgroud)
看到最后一行...... Initiative (Lookup from Themes:Initiative)< - 这就是我试图获得与主题相关的主动权.我尝试了很多不同的东西,只是无法弄清楚如何做到这一点.
它甚至可能吗?如果是这样,怎么样?
FWIW - 我使用的是SharePoint 2010,可以使用从Web工具到SharePoint Designer的任何内容.我是SharePoint 站点上的管理员,但不是服务器上的管理员.
我有一些用户特定的数据,我需要存储在SharePoint中,并通过自定义webparts使用户可以访问.让我们说一个喜欢的网址列表.存储此信息最直接的方法是什么?
对我来说听起来像RTFM,但我可能会问谷歌错误的问题.
[更新]
我们最终将这些信息存储在一个固定位置的简单列表中,并使用Person字段进行过滤.也许确实是最简单的解决方案,但从技术上讲,我认为下面的明确答案更好.
我从CXF调用lists.asmx webservice .以下soap调用不会返回列表子文件夹中的文件.它返回folder1,folder2和file1.pdf
Shared Documents
folder1
file2.docx
file3.pdf
folder2
sub-folder1
file5.pdf
file4.pdf
file1.pdf
Run Code Online (Sandbox Code Playgroud)
SOAP调用
POST /_vti_bin/lists.asmx HTTP/1.1 Accept-Encoding: gzip,deflate
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:soap1="http://schemas.microsoft.com/sharepoint/soap/">
<soap:Header/>
<soap:Body>
<soap1:GetListItems>
<soap1:listName>Shared Documents</soap1:listName>
<queryOptions>
<QueryOptions>
<IncludeMandatoryColumns>TRUE</IncludeMandatoryColumns>
<ViewAttributes Scope="RecursiveAll"/>
<DateInUtc>TRUE</DateInUtc>
</QueryOptions>
</queryOptions>
</soap1:GetListItems>
</soap:Body>
</soap:Envelope>
Run Code Online (Sandbox Code Playgroud)
有关如何从结果中包含的folder1,folder3和sub-folder1中获取文件的任何线索?如果列表Web服务无法做到,是否有替代服务/方法?
附加信息:
还有另一个Web服务,SiteData (_vti_bin/sitedata.asmx).它有一个类似的方法(getListItems)并返回所有文件只有列表名称而没有其他参数.问题是我无法弄清楚如何/在何处指定Paging参数,因为列表中没有任何queryOptions输入元素网络服务.
<soap1:strListName>?</soap1:strListName>
<soap1:strQuery>?</soap1:strQuery>
<soap1:strViewFields>?</soap1:strViewFields>
<soap1:uRowLimit>?</soap1:uRowLimit>
Run Code Online (Sandbox Code Playgroud) 我想从SharePoint中调用外部WCF服务.使用普通的WCF调用会立即导致SocketException(现有连接被远程主机强行关闭),可以使用SPSecurity.RunWithElevatePrivileges来规避它.
[SocketException(0x2746):远程主机强制关闭现有连接]
System.Net.Sockets.Socket.Receive(Byte []缓冲区,Int32偏移量,Int32大小,SocketFlags socketFlags)+85
System.ServiceModel.Channels.SocketConnection .ReadCore(Byte [] buffer,Int32 offset,Int32 size,TimeSpan timeout,Boolean closing)+204[CommunicationException:套接字连接已中止.这可能是由于处理消息的错误或远程主机超出接收超时或基础网络资源问题引起的.本地套接字超时为'00:00:58.7210000'.]
System.ServiceModel.Channels.SocketConnection.ReadCore(Byte [] buffer,Int32 offset,Int32 size,TimeSpan timeout,Boolean closing)+15307563
System.ServiceModel.Channels.SocketConnection.读取(Byte []缓冲区,Int32偏移量,Int32大小,TimeSpan超时)+90
System.ServiceModel.Channels.DelegatingConnection.Read(Byte []缓冲区,Int32偏移量,Int32大小,TimeSpan超时)+34
System.ServiceModel.Channels. ConnectionStream.Read(Byte [] buffer,Int32 offset,Int32 count,TimeSpan timeout)+34
System.ServiceModel.Channels.ConnectionStream.Read(Byte [] buffer,Int32 offset,Int32 count)+88
System.Net.FixedSizeReader.ReadPacket (Byte [] buffer,Int32 offset,Int32 count)+58
System.Net.Security.NegotiateStream.StartFrameHeader(Byte [] buffer,Int32 offset,Int32 count,AsyncProtocolRequest asyncRequest)+62
System.Net.Security.NegotiateStream.StartReading(字节[]缓冲区,Int32偏移量,Int32计数,AsyncProtocolRequest asyncRequest)+54
System.Net.Security.N egotiateStream.ProcessRead(Byte [] buffer,Int32 offset,Int32 count,AsyncProtocolRequest asyncRequest)+402[IOException:读取操作失败,请参阅内部异常.]
System.Net.Security.NegotiateStream.ProcessRead(Byte [] buffer,Int32 offset,Int32 count,AsyncProtocolRequest asyncRequest)+704
System.Net.Security.NegotiateStream.Read(Byte) [] buffer,Int32 offset,Int32 count)+154
System.ServiceModel.Channels.StreamConnection.Read(Byte [] buffer,Int32 offset,Int32 size,TimeSpan timeout)+87[CommunicationException:套接字连接已中止.这可能是由于处理消息的错误或远程主机超出接收超时或基础网络资源问题引起的.本地套接字超时为'00:00:58.7210000'.]
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg)+10257978 …
如果您使用SharePoint 2010附带的浏览器内HTML编辑器,当您插入某些CSS选择器(如nth-child)或任何JavaScript时,SharePoint将在保存页面之前删除这些元素.有人可能认为这是为了安全,但在内部网站点上并不重要(安全威胁可能nth-child构成什么?真的吗?).
所以我对SharePoint决定要删除你输入的任何HTML的程度感到沮丧,我想知道如何禁用它,所以我可以在HTML编辑器中输入我喜欢的内容.
或者我要求的太多了,还有另一种更简单的方法来编辑页面而不删除任何内容吗?
有没有其他人遇到过Mac和iOS8上最新版本的Safari 7.1在SharePoint 2010中打破ASPMenu控件的问题?ASPMenu工作正常,但现在更新后它决定不正确地呈现内容.我已经尝试设置Page.ClientTarget ="uplevel",并修改compat.browser文件以包含Safari的适配器"System.Web.UI.WebControls.Menu",但这两个选项都没有帮助解决问题.
有人可以帮忙吗?在Safari更新之前,菜单完全正常.谢谢!
sharepoint-2010 ×10
sharepoint ×6
c# ×2
.net ×1
aspmenu ×1
itextsharp ×1
lookup ×1
safari ×1
web-parts ×1
web-services ×1
wss ×1